remove some dead code, simplify
This commit is contained in:
parent
7e468ca59c
commit
da77944f67
@ -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) {
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user