summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-30 12:22:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-30 15:26:06 +0100
commit9ebedb7eedfeb7e622038f3c1ca35c439adcf3ae (patch)
treeb75be4892e36d6f1bd534a2dee067e3e51013953 /svx
parent2742d8421b18f2d00bcc5147b79202973f3c11fb (diff)
coverity#704340 Logically dead code
Change-Id: I785b3faa2a9e3a540c3d09a37686f9ef26643094
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svddrgmt.cxx6
-rw-r--r--svx/source/svdraw/svdpoev.cxx4
2 files changed, 4 insertions, 6 deletions
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);