Drop the reset methods in KDecorationFactory

They are no longer used by any decoration or by KWin core.
This commit is contained in:
Martin Gräßlin 2013-08-23 14:52:34 +02:00
parent d29b9bf03a
commit 0ba75ca07f
2 changed files with 0 additions and 28 deletions

View file

@ -48,11 +48,6 @@ KDecorationFactory::~KDecorationFactory()
assert(_decorations.count() == 0);
}
bool KDecorationFactory::reset(unsigned long)
{
return true;
}
void KDecorationFactory::checkRequirements(KDecorationProvides*)
{
}
@ -89,14 +84,6 @@ void KDecorationFactory::removeDecoration(KDecoration* deco)
_decorations.removeAll(deco);
}
void KDecorationFactory::resetDecorations(unsigned long changed)
{
for (QList< KDecoration* >::ConstIterator it = _decorations.constBegin();
it != _decorations.constEnd();
++it)
(*it)->reset(changed);
}
NET::WindowType KDecorationFactory::windowType(unsigned long supported_types, KDecorationBridge* bridge) const
{
return bridge->windowType(supported_types);

View file

@ -50,16 +50,6 @@ public:
* KDecoration argument should be this factory object.
*/
virtual KDecoration* createDecoration(KDecorationBridge* bridge) = 0;
/**
* This function is called when the configuration settings changed.
* The argument specifies what has changed, using the SettingXXX masks.
* It should be determined whether the decorations need to be completely
* remade, in which case true should be returned, or whether only e.g.
* a repaint will be sufficient, in which case false should be returned,
* and resetDecorations() can be called to reset all decoration objects.
* Note that true should be returned only when really necessary.
*/
virtual bool reset(unsigned long changed); // returns true if the decoration needs to be recreated
/**
* Reimplement this function if your decoration supports more border sizes than
@ -121,11 +111,6 @@ protected:
* initialization of the plugin should be done in the factory constructor.
*/
explicit KDecorationFactory(QObject *parent = nullptr);
/**
* Convenience function that calls KDecoration::reset() for all decoration
* objects.
*/
void resetDecorations(unsigned long changed); // convenience
/**
* This function has the same functionality like KDecoration::windowType().
* It can be used in createDecoration() to return different KDecoration