Kaydet (Commit) 87e2f770 authored tarafından Luboš Luňák's avatar Luboš Luňák

remove unused variables

üst 73be7d0a
...@@ -962,7 +962,6 @@ SdrObject* SwVirtFlyDrawObj::CheckMacroHit( const SdrObjMacroHitRec& rRec ) cons ...@@ -962,7 +962,6 @@ SdrObject* SwVirtFlyDrawObj::CheckMacroHit( const SdrObjMacroHitRec& rRec ) cons
if( aRect.IsInside( rRec.aPos ) ) if( aRect.IsInside( rRec.aPos ) )
{ {
SwRect aActRect( aRect ); SwRect aActRect( aRect );
Size aActSz( aRect.SSize() );
aRect.Pos().X() += rRec.nTol; aRect.Pos().X() += rRec.nTol;
aRect.Pos().Y() += rRec.nTol; aRect.Pos().Y() += rRec.nTol;
aRect.SSize().Height()-= 2 * rRec.nTol; aRect.SSize().Height()-= 2 * rRec.nTol;
......
...@@ -2062,7 +2062,6 @@ void lcl_AdjustRectToPixelSize( SwRect& io_aSwRect, const OutputDevice &aOut ) ...@@ -2062,7 +2062,6 @@ void lcl_AdjustRectToPixelSize( SwRect& io_aSwRect, const OutputDevice &aOut )
Rectangle aTestNewPxRect = aOut.LogicToPixel( aSizedRect ); Rectangle aTestNewPxRect = aOut.LogicToPixel( aSizedRect );
OSL_ENSURE( aTestOrgPxRect == aTestNewPxRect, OSL_ENSURE( aTestOrgPxRect == aTestNewPxRect,
"Error in lcl_AlignRectToPixelSize(..): Adjusted rectangle has incorrect position or size"); "Error in lcl_AlignRectToPixelSize(..): Adjusted rectangle has incorrect position or size");
Rectangle aTestNewRect( aSizedRect );
/// check Left() /// check Left()
--aSizedRect.Left(); --aSizedRect.Left();
aTestNewPxRect = aOut.LogicToPixel( aSizedRect ); aTestNewPxRect = aOut.LogicToPixel( aSizedRect );
......
...@@ -245,7 +245,6 @@ void SwLayVout::Enter( ViewShell *pShell, SwRect &rRect, sal_Bool bOn ) ...@@ -245,7 +245,6 @@ void SwLayVout::Enter( ViewShell *pShell, SwRect &rRect, sal_Bool bOn )
void SwLayVout::_Flush() void SwLayVout::_Flush()
{ {
OSL_ENSURE( pVirDev, "SwLayVout::DrawOut: nothing left Toulouse" ); OSL_ENSURE( pVirDev, "SwLayVout::DrawOut: nothing left Toulouse" );
Rectangle aTmp( aRect.SVRect() );
pOut->DrawOutDev( aRect.Pos(), aRect.SSize(), pOut->DrawOutDev( aRect.Pos(), aRect.SSize(),
aRect.Pos(), aRect.SSize(), *pVirDev ); aRect.Pos(), aRect.SSize(), *pVirDev );
SetOutDev( pSh, pOut ); SetOutDev( pSh, pOut );
......
...@@ -113,7 +113,6 @@ sal_Bool ConstPolygon::MouseButtonUp(const MouseEvent& rMEvt) ...@@ -113,7 +113,6 @@ sal_Bool ConstPolygon::MouseButtonUp(const MouseEvent& rMEvt)
} }
else else
{ {
Point aPnt(m_pWin->PixelToLogic(rMEvt.GetPosPixel()));
bReturn = SwDrawBase::MouseButtonUp(rMEvt); bReturn = SwDrawBase::MouseButtonUp(rMEvt);
// #i85045# removed double mechanism to check for AutoClose polygon // #i85045# removed double mechanism to check for AutoClose polygon
......
...@@ -94,8 +94,6 @@ sal_Bool ConstRectangle::MouseButtonDown(const MouseEvent& rMEvt) ...@@ -94,8 +94,6 @@ sal_Bool ConstRectangle::MouseButtonDown(const MouseEvent& rMEvt)
sal_Bool ConstRectangle::MouseButtonUp(const MouseEvent& rMEvt) sal_Bool ConstRectangle::MouseButtonUp(const MouseEvent& rMEvt)
{ {
Point aPnt(m_pWin->PixelToLogic(rMEvt.GetPosPixel()));
sal_Bool bRet = SwDrawBase::MouseButtonUp(rMEvt); sal_Bool bRet = SwDrawBase::MouseButtonUp(rMEvt);
if( bRet ) if( bRet )
{ {
......
...@@ -96,8 +96,7 @@ void SwOleClient::RequestNewObjectArea( Rectangle& aLogRect ) ...@@ -96,8 +96,7 @@ void SwOleClient::RequestNewObjectArea( Rectangle& aLogRect )
void SwOleClient::ObjectAreaChanged() void SwOleClient::ObjectAreaChanged()
{ {
SwWrtShell &rSh = ((SwView*)GetViewShell())->GetWrtShell(); SwWrtShell &rSh = ((SwView*)GetViewShell())->GetWrtShell();
SwRect aFrm( rSh.GetAnyCurRect( RECT_FLY_EMBEDDED, 0, GetObject() )), SwRect aFrm( rSh.GetAnyCurRect( RECT_FLY_EMBEDDED, 0, GetObject() ));
aPrt( rSh.GetAnyCurRect( RECT_FLY_PRT_EMBEDDED, 0, GetObject() ));
if ( !aFrm.IsOver( rSh.VisArea() ) ) if ( !aFrm.IsOver( rSh.VisArea() ) )
rSh.MakeVisible( aFrm ); rSh.MakeVisible( aFrm );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment