Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Remove unused functions and a configuration entry from KisConfig

Nicholas LaPointe9dca4f468c57
diff --git a/libs/ui/kis_config.cc b/libs/ui/kis_config.cc
index a78bb3ac08..0c88c3c1d5 100644
--- a/libs/ui/kis_config.cc
+++ b/libs/ui/kis_config.cc
@@ -853,20 +853,8 @@ QString KisConfig::monitorProfile(int screen) const
return profile;
}
-QString KisConfig::monitorForScreen(int screen, const QString &defaultMonitor, bool defaultValue) const
+void KisConfig::setMonitorProfile(int screen, const QString & monitorProfile) const
{
- return (defaultValue ? defaultMonitor
- : m_cfg.readEntry(QString("monitor_for_screen_%1").arg(screen), defaultMonitor));
-}
-
-void KisConfig::setMonitorForScreen(int screen, const QString& monitor)
-{
- m_cfg.writeEntry(QString("monitor_for_screen_%1").arg(screen), monitor);
-}
-
-void KisConfig::setMonitorProfile(int screen, const QString & monitorProfile, bool override) const
-{
- m_cfg.writeEntry("monitorProfile/OverrideX11", override);
m_cfg.writeEntry("monitorProfile" + QString(screen == 0 ? "": QString("_%1").arg(screen)), monitorProfile);
if (!getScreenStringIdentfier(screen).isEmpty()) {
m_cfg.writeEntry("monitorProfile" + getScreenStringIdentfier(screen), monitorProfile);
diff --git a/libs/ui/kis_config.h b/libs/ui/kis_config.h
index 50ca9cdfe8..e980f50893 100644
--- a/libs/ui/kis_config.h
+++ b/libs/ui/kis_config.h
@@ -227,10 +227,7 @@ public:
/// get the profile the user has selected for the given screen
QString monitorProfile(int screen) const;
- void setMonitorProfile(int screen, const QString & monitorProfile, bool override) const;
-
- QString monitorForScreen(int screen, const QString &defaultMonitor, bool defaultValue = true) const;
- void setMonitorForScreen(int screen, const QString& monitor);
+ void setMonitorProfile(int screen, const QString & monitorProfile) const;
/// Get the actual profile to be used for the given screen, which is
/// either the screen profile set by the color management system or