From b0da05585005730e9655208d331eddb7f81c1afb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 26 Nov 2012 10:39:38 +0100 Subject: [PATCH] Do not check whether -session cmd argument is passed to kwin in kdemain This got used to check whether the session is being restored and only if the session was not being restored the multi-head checks used to be performed. Since 299a78772b823d28cf3c48aff696cfb978d0ae7e the multi-head checks are no longer bound to not restoring the session which obsoletes the remaining checks. REVIEW: 107468 --- main.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/main.cpp b/main.cpp index e1609973a9..85c297bd12 100644 --- a/main.cpp +++ b/main.cpp @@ -402,14 +402,6 @@ static const char description[] = I18N_NOOP("KDE window manager"); extern "C" KDE_EXPORT int kdemain(int argc, char * argv[]) { - bool restored = false; - for (int arg = 1; arg < argc; arg++) { - if (!qstrcmp(argv[arg], "-session")) { - restored = true; - break; - } - } - #ifdef M_TRIM_THRESHOLD // Prevent fragmentation of the heap by malloc (glibc). //