summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-11-07 17:24:57 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-11-08 09:18:20 +0100
commit1ebb9355a5ffcefdb14dfd54258aeda97d0369c1 (patch)
treef40be722899d1596f2d3221b22fdf0c826de41a3 /svtools
parent1e0b50c17b80146e4840994703369bae904b2207 (diff)
Related: tdf#150273 maPaintCol is unused now
Change-Id: I823a2ec24aea47b4b3d005107c8a18fec223e6df Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142398 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ctrlbox.cxx16
1 files changed, 0 insertions, 16 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index 20fe74bf4bb5..dbfcf84e679f 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -1406,7 +1406,6 @@ SvtLineListBox::SvtLineListBox(std::unique_ptr<weld::MenuButton> pControl)
, m_nWidth( 5 )
, aVirDev(VclPtr<VirtualDevice>::Create())
, aColor(COL_BLACK)
- , maPaintCol(COL_BLACK)
{
const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
m_xLineSet->SetStyle(WinBits(WB_FLATVALUESET | WB_NO_DIRECTSELECT | WB_TABSTOP));
@@ -1434,8 +1433,6 @@ SvtLineListBox::SvtLineListBox(std::unique_ptr<weld::MenuButton> pControl)
aVirDev->SetLineColor();
aVirDev->SetMapMode(MapMode(MapUnit::MapTwip));
-
- UpdatePaintLineColor();
}
IMPL_LINK_NOARG(SvtLineListBox, FocusHdl, weld::Widget&, void)
@@ -1512,21 +1509,8 @@ void SvtLineListBox::InsertEntry(
rWidthImpl, nStyle, nMinWidth, pColor1Fn, pColor2Fn, pColorDistFn));
}
-void SvtLineListBox::UpdatePaintLineColor()
-{
- const StyleSettings& rSettings = Application::GetSettings().GetStyleSettings();
- Color aNewCol(rSettings.GetWindowColor().IsDark() ? rSettings.GetLabelTextColor() : aColor);
-
- bool bRet = aNewCol != maPaintCol;
-
- if( bRet )
- maPaintCol = aNewCol;
-}
-
void SvtLineListBox::UpdateEntries()
{
- UpdatePaintLineColor( );
-
SvxBorderLineStyle eSelected = GetSelectEntryStyle();
// Remove the old entries