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
Show file tree
Hide file tree
Changes from all commits
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
1 change: 0 additions & 1 deletion main/svx/inc/svx/svdglue.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ public:
void SetHorzAlign(sal_uInt16 nAlg) { nAlign=(nAlign&0xFF00)|(nAlg&0x00FF); }
sal_uInt16 GetVertAlign() const { return nAlign&0xFF00; }
void SetVertAlign(sal_uInt16 nAlg) { nAlign=(nAlign&0x00FF)|(nAlg&0xFF00); }
void Draw(OutputDevice& rOut, const SdrObject* pObj) const;
FASTBOOL IsHit(const Point& rPnt, const OutputDevice& rOut, const SdrObject* pObj) const;
void Invalidate(Window& rWin, const SdrObject* pObj) const;
Point GetAbsolutePos(const SdrObject& rObj) const;
Expand Down
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