coverity#704339 Logically dead code

Change-Id: I944368eff5bf24bbdefd485f34bfd3a51fb1114e
This commit is contained in:
Caolán McNamara 2014-04-30 12:21:40 +01:00
parent 0389ecdb4b
commit 2742d8421b
2 changed files with 2 additions and 8 deletions

View File

@ -64,7 +64,7 @@ public:
bool IsDeleteMarkedPointsPossible() const SAL_OVERRIDE;
void MoveMarkedPoints(const Size& rSiz);
void ResizeMarkedPoints(const Point& rRef, const Fraction& xFact, const Fraction& yFact, bool bCopy=false);
void ResizeMarkedPoints(const Point& rRef, const Fraction& xFact, const Fraction& yFact);
void RotateMarkedPoints(const Point& rRef, long nWink, bool bCopy=false);
// Hierbei entstehen eventuell beliebig viele neue Objekte:

View File

@ -670,8 +670,6 @@ void SdrPolyEditView::MoveMarkedPoints(const Size& rSiz)
AdjustMarkHdl();
}
static void ImpResize(Point& rPt, Point* pC1, Point* pC2, const void* p1, const void* p2, const void* p3, const void* /*p4*/, const void* /*p5*/)
{
ResizePoint(rPt,*(const Point*)p1,*(const Fraction*)p2,*(const Fraction*)p3);
@ -679,20 +677,16 @@ static void ImpResize(Point& rPt, Point* pC1, Point* pC2, const void* p1, const
if (pC2!=NULL) ResizePoint(*pC2,*(const Point*)p1,*(const Fraction*)p2,*(const Fraction*)p3);
}
void SdrPolyEditView::ResizeMarkedPoints(const Point& rRef, const Fraction& xFact, const Fraction& yFact, bool bCopy)
void SdrPolyEditView::ResizeMarkedPoints(const Point& rRef, const Fraction& xFact, const Fraction& yFact)
{
bCopy=false; // TODO: not yet implemented
ForceUndirtyMrkPnt();
OUString aStr(ImpGetResStr(STR_EditResize));
if (bCopy) aStr+=ImpGetResStr(STR_EditWithCopy);
BegUndo(aStr,GetDescriptionOfMarkedPoints(),SDRREPFUNC_OBJ_RESIZE);
ImpTransformMarkedPoints(ImpResize,&rRef,&xFact,&yFact);
EndUndo();
AdjustMarkHdl();
}
static void ImpRotate(Point& rPt, Point* pC1, Point* pC2, const void* p1, const void* /*p2*/, const void* p3, const void* p4, const void* /*p5*/)
{
RotatePoint(rPt,*(const Point*)p1,*(const double*)p3,*(const double*)p4);