Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused(?) code #177

Merged
merged 2 commits into from
May 1, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions main/svx/source/svdraw/svdglue.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -247,45 +247,6 @@ void SdrGluePoint::Shear(const Point& rRef, long /*nWink*/, double tn, FASTBOOL
if (pObj!=NULL) SetAbsolutePos(aPt,*pObj); else SetPos(aPt);
}

// Unused code?!
void SdrGluePoint::Draw(OutputDevice& rOut, const SdrObject* pObj) const
{
Color aBackPenColor(COL_WHITE);
Color aForePenColor(COL_LIGHTBLUE);

bool bMapMerk=rOut.IsMapModeEnabled();
Point aPt(pObj!=NULL ? GetAbsolutePos(*pObj) : GetPos());
aPt=rOut.LogicToPixel(aPt);
rOut.EnableMapMode(sal_False);
long x=aPt.X(),y=aPt.Y(); // Groesse erstmal fest auf 7 Pixel

rOut.SetLineColor( aBackPenColor );
rOut.DrawLine(Point(x-2,y-3),Point(x+3,y+2));
rOut.DrawLine(Point(x-3,y-2),Point(x+2,y+3));
rOut.DrawLine(Point(x-3,y+2),Point(x+2,y-3));
rOut.DrawLine(Point(x-2,y+3),Point(x+3,y-2));

if (bNoPercent)
{
switch (GetHorzAlign())
{
case SDRHORZALIGN_LEFT : rOut.DrawLine(Point(x-3,y-1),Point(x-3,y+1)); break;
case SDRHORZALIGN_RIGHT : rOut.DrawLine(Point(x+3,y-1),Point(x+3,y+1)); break;
}

switch (GetVertAlign())
{
case SDRVERTALIGN_TOP : rOut.DrawLine(Point(x-1,y-3),Point(x+1,y-3)); break;
case SDRVERTALIGN_BOTTOM: rOut.DrawLine(Point(x-1,y+3),Point(x+1,y+3)); break;
}
}

rOut.SetLineColor( aForePenColor );
rOut.DrawLine(Point(x-2,y-2),Point(x+2,y+2));
rOut.DrawLine(Point(x-2,y+2),Point(x+2,y-2));
rOut.EnableMapMode(bMapMerk);
}

void SdrGluePoint::Invalidate(Window& rWin, const SdrObject* pObj) const
{
bool bMapMerk=rWin.IsMapModeEnabled();
Expand Down