From da77944f679c876501b30bef9f38bac8961a37d0 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Sun, 7 Aug 2011 09:53:28 +0200 Subject: [PATCH] remove some dead code, simplify --- kpart/plasmakpartcorona.cpp | 6 ------ kpart/plasmakpartcorona.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/kpart/plasmakpartcorona.cpp b/kpart/plasmakpartcorona.cpp index 99f84da54..d598390e9 100644 --- a/kpart/plasmakpartcorona.cpp +++ b/kpart/plasmakpartcorona.cpp @@ -33,11 +33,6 @@ PlasmaKPartCorona::PlasmaKPartCorona(QObject *parent) : Plasma::Corona(parent) -{ - init(); -} - -void PlasmaKPartCorona::init() { enableAction("Lock Widgets", false); enableAction("Shortcut Settings", false); @@ -47,7 +42,6 @@ void PlasmaKPartCorona::init() void PlasmaKPartCorona::loadDefaultLayout() { // used to force a save into the config file - KConfigGroup invalidConfig; Plasma::Containment *c = addContainment(QString()); if (!c) { diff --git a/kpart/plasmakpartcorona.h b/kpart/plasmakpartcorona.h index 3df552502..b260ce747 100644 --- a/kpart/plasmakpartcorona.h +++ b/kpart/plasmakpartcorona.h @@ -39,12 +39,10 @@ public: PlasmaKPartCorona(QObject* parent); Plasma::Containment *containment(); - void loadDefaultLayout(); private: void evaluateScripts(const QStringList &scripts); - void init(); private Q_SLOTS: void printScriptError(const QString &error);