remove some dead code, simplify

This commit is contained in:
Aaron Seigo 2011-08-07 09:53:28 +02:00
parent 7e468ca59c
commit da77944f67
2 changed files with 0 additions and 8 deletions

View File

@ -33,11 +33,6 @@
PlasmaKPartCorona::PlasmaKPartCorona(QObject *parent) PlasmaKPartCorona::PlasmaKPartCorona(QObject *parent)
: Plasma::Corona(parent) : Plasma::Corona(parent)
{
init();
}
void PlasmaKPartCorona::init()
{ {
enableAction("Lock Widgets", false); enableAction("Lock Widgets", false);
enableAction("Shortcut Settings", false); enableAction("Shortcut Settings", false);
@ -47,7 +42,6 @@ void PlasmaKPartCorona::init()
void PlasmaKPartCorona::loadDefaultLayout() void PlasmaKPartCorona::loadDefaultLayout()
{ {
// used to force a save into the config file // used to force a save into the config file
KConfigGroup invalidConfig;
Plasma::Containment *c = addContainment(QString()); Plasma::Containment *c = addContainment(QString());
if (!c) { if (!c) {

View File

@ -39,12 +39,10 @@ public:
PlasmaKPartCorona(QObject* parent); PlasmaKPartCorona(QObject* parent);
Plasma::Containment *containment(); Plasma::Containment *containment();
void loadDefaultLayout(); void loadDefaultLayout();
private: private:
void evaluateScripts(const QStringList &scripts); void evaluateScripts(const QStringList &scripts);
void init();
private Q_SLOTS: private Q_SLOTS:
void printScriptError(const QString &error); void printScriptError(const QString &error);