[kcmkwin/compositing] Remove dead window management special case code

This commit is contained in:
Martin Gräßlin 2014-06-11 09:29:12 +02:00
parent 3420ab17bb
commit a29289ccb3
2 changed files with 0 additions and 14 deletions

View file

@ -202,11 +202,6 @@ bool EffectModel::setData(const QModelIndex& index, const QVariant& value, int r
}
}
return true;
} else if (role == EffectModel::WindowManagementRole) {
bool enabled = value.toBool();
handleWindowManagement(index.row(), enabled);
emit dataChanged(index, index);
return true;
}
@ -333,13 +328,6 @@ void EffectModel::loadEffects()
endResetModel();
}
void EffectModel::handleWindowManagement(int row, bool enabled)
{
//Make sure that our row is valid
if (m_effectsList.size() > 0 && row <= m_effectsList.size())
m_effectsList[row].effectStatus = enabled;
}
int EffectModel::findRowByServiceName(const QString &serviceName)
{
for (int it = 0; it < m_effectsList.size(); it++) {

View file

@ -69,7 +69,6 @@ public:
CategoryRole,
ServiceNameRole,
EffectStatusRole,
WindowManagementRole,
VideoRole,
SupportedRole,
ExclusiveRole,
@ -97,7 +96,6 @@ public:
void defaults();
private:
void handleWindowManagement(int row, bool enabled);
int findRowByServiceName(const QString &serviceName);
QList<EffectData> m_effectsList;
QList<EffectData> m_effectsChanged;