sidebar: Kill DrawBevelBorder(), nobody uses that now.
Change-Id: I7901ad17515002c8568a46f9a11c0c9919c0841e
diff --git a/sfx2/source/sidebar/DrawHelper.cxx b/sfx2/source/sidebar/DrawHelper.cxx
index f8172b2..85dbe372 100644
--- a/sfx2/source/sidebar/DrawHelper.cxx
+++ b/sfx2/source/sidebar/DrawHelper.cxx
@@ -21,7 +21,6 @@
#include <vcl/lineinfo.hxx>
namespace sfx2 { namespace sidebar {
void DrawHelper::DrawBorder (
@@ -65,70 +64,6 @@ void DrawHelper::DrawBorder (
rVerticalPaint);
}
void DrawHelper::DrawBevelBorder (
OutputDevice& rDevice,
const Rectangle rBox,
const SvBorder aBorderSize,
const Paint& rTopLeftPaint,
const Paint& rCenterPaint,
const Paint& rBottomRightPaint)
{
// Draw top line.
DrawHorizontalLine(
rDevice,
rBox.Left(),
rBox.Right() - aBorderSize.Right(),
rBox.Top(),
aBorderSize.Top(),
rTopLeftPaint);
// Draw bottom line.
DrawHorizontalLine(
rDevice,
rBox.Left()+aBorderSize.Left(),
rBox.Right(),
rBox.Bottom()-aBorderSize.Bottom()+1,
aBorderSize.Bottom(),
rBottomRightPaint);
// Draw left line.
DrawVerticalLine(
rDevice,
rBox.Top()+aBorderSize.Top(),
rBox.Bottom() - aBorderSize.Bottom(),
rBox.Left(),
aBorderSize.Left(),
rTopLeftPaint);
// Draw right line.
DrawVerticalLine(
rDevice,
rBox.Top()+aBorderSize.Top(),
rBox.Bottom()-aBorderSize.Bottom(),
rBox.Right()-aBorderSize.Right()+1,
aBorderSize.Right(),
rBottomRightPaint);
// Draw top right corner.
DrawVerticalLine(
rDevice,
rBox.Top(),
rBox.Top()+aBorderSize.Top()-1,
rBox.Right()-aBorderSize.Right()+1,
aBorderSize.Right(),
rCenterPaint);
// Draw bottom right corner.
DrawVerticalLine(
rDevice,
rBox.Bottom() - aBorderSize.Bottom()+1,
rBox.Bottom(),
rBox.Left(),
aBorderSize.Left(),
rCenterPaint);
}
void DrawHelper::DrawHorizontalLine(
OutputDevice& rDevice,
const sal_Int32 nLeft,
@@ -165,9 +100,6 @@ void DrawHelper::DrawHorizontalLine(
}
}
void DrawHelper::DrawVerticalLine(
OutputDevice& rDevice,
const sal_Int32 nTop,
@@ -204,9 +136,6 @@ void DrawHelper::DrawVerticalLine(
}
}
void DrawHelper::DrawRoundedRectangle (
OutputDevice& rDevice,
const Rectangle& rBox,
@@ -238,7 +167,4 @@ void DrawHelper::DrawRoundedRectangle (
}
}
} } // end of namespace sfx2::sidebar
diff --git a/sfx2/source/sidebar/DrawHelper.hxx b/sfx2/source/sidebar/DrawHelper.hxx
index 45bf7ea..c17c9ed 100644
--- a/sfx2/source/sidebar/DrawHelper.hxx
+++ b/sfx2/source/sidebar/DrawHelper.hxx
@@ -39,13 +39,6 @@ public:
const SvBorder aBorderSize,
const Paint& rHorizontalPaint,
const Paint& rVerticalPaint);
static void DrawBevelBorder (
OutputDevice& rDevice,
const Rectangle rBox,
const SvBorder aBorderSize,
const Paint& rTopLeftPaint,
const Paint& rCenterPaint,
const Paint& rBottomRightPaint);
static void DrawHorizontalLine(
OutputDevice& rDevice,
const sal_Int32 nLeft,