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.
This commit is contained in:
Martin Gräßlin 2016-06-29 10:55:20 +02:00
parent 89b28c32da
commit 67f7e8da34

View file

@ -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