remove dead code

Change-Id: Id8daeafa77dabea7253ac5c489ad761ba0c6fdf6
This commit is contained in:
Marco Martin 2014-10-28 16:45:17 +01:00
parent d901062d9d
commit eee9a90aab

View File

@ -230,6 +230,8 @@ void AppletPrivate::askDestroy()
transient = true;
cleanUpAndDelete();
} else {
//There is no confirmation anymore for panels removal:
//this needs users feedback
q->setStatus(Types::AwaitingDeletionStatus);
//no parent, but it won't leak, since it will be closed both in case of timeout
//or direct action
@ -266,26 +268,6 @@ void AppletPrivate::askDestroy()
deleteNotificationTimer->start();
}
}
/*
if (q->isContainment()) {
QMessageBox *box = new QMessageBox(QMessageBox::Warning, i18nc("@title:window %1 is the name of the containment", "Remove %1", q->title()), i18nc("%1 is the name of the containment", "Do you really want to remove this %1?", q->title()), QMessageBox::StandardButtons(QMessageBox::Yes | QMessageBox::No));
box->setWindowFlags((Qt::WindowFlags)(box->windowFlags() | Qt::WA_DeleteOnClose));
box->open();
QObject::connect(q, &Applet::immutabilityChanged, [=] () {
box->close();
});
QObject::connect(q, &QObject::destroyed, [=] () {
box->close();
});
QObject::connect(box->button(QMessageBox::Yes), &QAbstractButton::clicked,
[ = ]() {
transient = true;
cleanUpAndDelete();
});
return;
}*/
}
void AppletPrivate::globalShortcutChanged()