From 5d6c52e26c5ccd827e8e6f60d1fdd0d233b6edf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 10 Sep 2013 12:20:50 +0200 Subject: [PATCH] Drop initing variable from kwin/main.cpp It's nowhere read, just set once to true and once to false and by that rather useless. --- main.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/main.cpp b/main.cpp index 5bdd115a94..46d9d0d687 100644 --- a/main.cpp +++ b/main.cpp @@ -71,8 +71,6 @@ Atoms* atoms; int screen_number = -1; bool is_multihead = false; -bool initting = false; - //************************************ // KWinSelectionOwner //************************************ @@ -250,7 +248,6 @@ void Application::start() // Reset crashes count if we stay up for more that 15 seconds QTimer::singleShot(15 * 1000, this, SLOT(resetCrashesCount())); - initting = true; // Startup... installNativeEventFilter(m_eventFilter.data()); // first load options - done internally by a different thread options = new Options; @@ -269,8 +266,6 @@ void Application::start() atoms = new Atoms; - // initting = false; // TODO - // This tries to detect compositing options and can use GLX. GLX problems // (X errors) shouldn't cause kwin to abort, so this is out of the // critical startup section where x errors cause kwin to abort. @@ -280,8 +275,6 @@ void Application::start() Xcb::sync(); // Trigger possible errors, there's still a chance to abort - initting = false; // Startup done, we are up and running now. - const QByteArray splashAtomName(QByteArrayLiteral("_KDE_SPLASH_PROGRESS")); ScopedCPointer splashAtom(xcb_intern_atom_reply(connection(), xcb_intern_atom_unchecked(connection(), false, splashAtomName.length(), splashAtomName.constData()), nullptr));