remove ContainmentPrivate::initApplets

This commit is contained in:
Marco Martin 2013-02-13 21:48:25 +01:00
parent bc1b63ebad
commit 54f0fc4926
3 changed files with 0 additions and 23 deletions

View File

@ -709,7 +709,6 @@ QList<Plasma::Containment *> CoronaPrivate::importLayout(const KConfigGroup &con
foreach (Containment *containment, newContainments) {
containment->updateConstraints(Plasma::StartupCompletedConstraint);
containment->d->initApplets();
emit q->containmentAdded(containment);
#ifndef NDEBUG
kDebug() << "!!{} STARTUP TIME" << QTime().msecsTo(QTime::currentTime()) << "Containment" << containment->name();

View File

@ -105,27 +105,6 @@ void ContainmentPrivate::addDefaultActions(KActionCollection *actions, Containme
action->setData(Containment::ControlTool);
}
void ContainmentPrivate::initApplets()
{
foreach (Applet *applet, applets) {
applet->restore(*applet->d->mainConfigGroup());
applet->init();
#ifndef NDEBUG
kDebug() << "!!{} STARTUP TIME" << QTime().msecsTo(QTime::currentTime()) << "Applet" << applet->title();
#endif
}
q->flushPendingConstraintsEvents();
foreach (Applet *applet, applets) {
applet->flushPendingConstraintsEvents();
}
#ifndef NDEBUG
kDebug() << "!!{} STARTUP TIME" << QTime().msecsTo(QTime::currentTime()) << "Containment's applets initialized" << q->title();
#endif
}
void ContainmentPrivate::checkContainmentFurniture()
{
if (q->isContainment() &&

View File

@ -83,7 +83,6 @@ public:
*/
void containmentConstraintsEvent(Plasma::Constraints constraints);
void initApplets();
void checkContainmentFurniture();
bool isPanelContainment() const;
void setLockToolText();