From 9ebedb7eedfeb7e622038f3c1ca35c439adcf3ae Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 30 Apr 2014 12:22:26 +0100 Subject: coverity#704340 Logically dead code Change-Id: I785b3faa2a9e3a540c3d09a37686f9ef26643094 --- svx/source/svdraw/svddrgmt.cxx | 6 +++--- svx/source/svdraw/svdpoev.cxx | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'svx') diff --git a/svx/source/svdraw/svddrgmt.cxx b/svx/source/svdraw/svddrgmt.cxx index 34be0e161b12..6b040917be9e 100644 --- a/svx/source/svdraw/svddrgmt.cxx +++ b/svx/source/svdraw/svddrgmt.cxx @@ -1741,7 +1741,7 @@ bool SdrDragMove::EndSdrDrag(bool bCopy) if (IsDraggingPoints()) { - getSdrDragView().MoveMarkedPoints(Size(DragStat().GetDX(),DragStat().GetDY()),bCopy); + getSdrDragView().MoveMarkedPoints(Size(DragStat().GetDX(),DragStat().GetDY())); } else if (IsDraggingGluePoints()) { @@ -2078,7 +2078,7 @@ bool SdrDragResize::EndSdrDrag(bool bCopy) if (IsDraggingPoints()) { - getSdrDragView().ResizeMarkedPoints(DragStat().Ref1(),aXFact,aYFact,bCopy); + getSdrDragView().ResizeMarkedPoints(DragStat().Ref1(),aXFact,aYFact); } else if (IsDraggingGluePoints()) { @@ -2222,7 +2222,7 @@ bool SdrDragRotate::EndSdrDrag(bool bCopy) { if (IsDraggingPoints()) { - getSdrDragView().RotateMarkedPoints(DragStat().GetRef1(),nWink,bCopy); + getSdrDragView().RotateMarkedPoints(DragStat().GetRef1(),nWink); } else if (IsDraggingGluePoints()) { diff --git a/svx/source/svdraw/svdpoev.cxx b/svx/source/svdraw/svdpoev.cxx index ea5f509e0b18..1f161663b2c6 100644 --- a/svx/source/svdraw/svdpoev.cxx +++ b/svx/source/svdraw/svdpoev.cxx @@ -694,12 +694,10 @@ static void ImpRotate(Point& rPt, Point* pC1, Point* pC2, const void* p1, const if (pC2!=NULL) RotatePoint(*pC2,*(const Point*)p1,*(const double*)p3,*(const double*)p4); } -void SdrPolyEditView::RotateMarkedPoints(const Point& rRef, long nWink, bool bCopy) +void SdrPolyEditView::RotateMarkedPoints(const Point& rRef, long nWink) { - bCopy=false; // TODO: not yet implemented ForceUndirtyMrkPnt(); OUString aStr(ImpGetResStr(STR_EditResize)); - if (bCopy) aStr+=ImpGetResStr(STR_EditWithCopy); BegUndo(aStr,GetDescriptionOfMarkedPoints(),SDRREPFUNC_OBJ_ROTATE); double nSin=sin(nWink*nPi180); double nCos=cos(nWink*nPi180); -- cgit