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.
icc-effect-5.14.5
Martin Gräßlin 2016-06-29 10:55:20 +02:00
parent 89b28c32da
commit 67f7e8da34
1 changed files with 0 additions and 13 deletions

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