diff --git a/libkdecorations/kdecorationfactory.cpp b/libkdecorations/kdecorationfactory.cpp index 8aa0ff62a5..2825032674 100644 --- a/libkdecorations/kdecorationfactory.cpp +++ b/libkdecorations/kdecorationfactory.cpp @@ -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); diff --git a/libkdecorations/kdecorationfactory.h b/libkdecorations/kdecorationfactory.h index 31d8d518b6..5ba9a52d5c 100644 --- a/libkdecorations/kdecorationfactory.h +++ b/libkdecorations/kdecorationfactory.h @@ -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