From 67f7e8da34972de0eae5c18f8ca6932127e65ed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 29 Jun 2016 10:55:20 +0200 Subject: [PATCH] Drop static previous_client from Client::takeFocus Only set but never read. The debug code for verifying was commented out as it would no longer compile. Let's just get rid of it completely. --- client.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/client.cpp b/client.cpp index 2e6966643e..50d87cfdcd 100644 --- a/client.cpp +++ b/client.cpp @@ -1352,19 +1352,6 @@ void Client::setOnAllActivities(bool on) */ void Client::takeFocus() { -#ifndef NDEBUG - static Time previous_focus_timestamp; - static Client* previous_client; - - //if ( previous_focus_timestamp == xTime() && previous_client != this ) - // { - // qDebug() << "Repeated use of the same X timestamp for focus"; - // qDebug() << kBacktrace(); - // } - - previous_focus_timestamp = xTime(); - previous_client = this; -#endif if (rules()->checkAcceptFocus(info->input())) m_client.focus(); else