KCM KWin Decoration: Remove isDefault

Custom code for isDefault is not needed. Indeed, testing dropdown value is not needed to know if we have a default value or not. Testing theme and border size auto is enough, and it's done automatically by KConfigXT
master
Benjamin Port 2020-09-30 14:28:28 +02:00 committed by Benjamin Port
parent a7aa089ec4
commit 5290583f8a
2 changed files with 0 additions and 6 deletions

View File

@ -242,11 +242,6 @@ bool KCMKWinDecoration::isSaveNeeded() const
return !m_settings->borderSizeAuto() && borderSizeIndexFromString(m_settings->borderSize()) != m_borderSizeIndex;
}
bool KCMKWinDecoration::isDefaults() const
{
return m_settings->borderSizeAuto() && recommendedBorderSize() == m_borderSizeIndex;
}
int KCMKWinDecoration::borderSizeIndexFromString(const QString &size) const
{
return Utils::getBorderSizeNames().keys().indexOf(Utils::stringToBorderSize(size));

View File

@ -86,7 +86,6 @@ private Q_SLOTS:
private:
bool isSaveNeeded() const override;
bool isDefaults() const override;
int borderSizeIndexFromString(const QString &size) const;
QString borderSizeIndexToString(int index) const;