summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-10-12 10:58:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-10-13 10:02:57 +0200
commitd28942e5b8f0c58a724e52133eb58b261949266e (patch)
tree1be2d67d5eed9aea979775864d216efed536164c /svtools
parentb45867766184ad1200df4183dab537fac9e83ea2 (diff)
drop newly unused StyleSettings::GetFontColor
Change-Id: Icd20283207e9ac0392d11d74553d7c607330dbe1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140895 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/config/colorcfg.cxx32
1 files changed, 0 insertions, 32 deletions
diff --git a/svtools/source/config/colorcfg.cxx b/svtools/source/config/colorcfg.cxx
index 72556dd106dd..48889833f716 100644
--- a/svtools/source/config/colorcfg.cxx
+++ b/svtools/source/config/colorcfg.cxx
@@ -97,8 +97,6 @@ public:
bool GetAutoDetectSystemHC() const {return m_bAutoDetectSystemHC;}
DECL_LINK( DataChangedEventListener, VclSimpleEvent&, void );
-
- void ImplUpdateApplicationSettings();
};
namespace {
@@ -196,8 +194,6 @@ ColorConfig_Impl::ColorConfig_Impl() :
if (!utl::ConfigManager::IsFuzzing())
Load(OUString());
- ImplUpdateApplicationSettings();
-
::Application::AddEventListener( LINK(this, ColorConfig_Impl, DataChangedEventListener) );
}
@@ -331,8 +327,6 @@ void ColorConfig_Impl::SettingsChanged()
{
SolarMutexGuard aVclGuard;
- ImplUpdateApplicationSettings();
-
NotifyListeners(ConfigurationHints::NONE);
}
@@ -349,32 +343,6 @@ IMPL_LINK( ColorConfig_Impl, DataChangedEventListener, VclSimpleEvent&, rEvent,
}
}
-
-/** updates the font color in the vcl window settings */
-void ColorConfig_Impl::ImplUpdateApplicationSettings()
-{
- Application* pApp = GetpApp();
- if( !pApp )
- return;
-
- AllSettings aSettings = Application::GetSettings();
- StyleSettings aStyleSettings( aSettings.GetStyleSettings() );
-
- ColorConfigValue aRet = GetColorConfigValue(svtools::FONTCOLOR);
- if(COL_AUTO == aRet.nColor)
- aRet.nColor = ColorConfig::GetDefaultColor(svtools::FONTCOLOR);
-
- Color aFontColor(aRet.nColor);
-
- if( aStyleSettings.GetFontColor() != aFontColor )
- {
- aStyleSettings.SetFontColor( aFontColor );
-
- aSettings.SetStyleSettings( aStyleSettings );
- Application::SetSettings( aSettings );
- }
-}
-
ColorConfig::ColorConfig()
{
if (utl::ConfigManager::IsFuzzing())