From 4999a8311819f2648e3f515940cebc728a999028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 10 Jul 2006 17:07:29 +0000 Subject: [PATCH] Not needed later after all. svn path=/trunk/KDE/kdebase/workspace/; revision=560573 --- sm.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/sm.cpp b/sm.cpp index a7e4accade..7dc4a7f5ae 100644 --- a/sm.cpp +++ b/sm.cpp @@ -257,28 +257,6 @@ bool Workspace::sessionInfoWindowTypeMatch( Client* c, SessionInfo* info ) return info->windowType == c->windowType(); } -// maybe needed later -#if 0 -// KMainWindow's without name() given have WM_WINDOW_ROLE in the form -// of -mainwindow# -// when comparing them for fake session info, it's probably better to check -// them without the trailing number -bool Workspace::windowRoleMatch( const QByteArray& role1, const QByteArray& role2 ) - { - if( role1.isEmpty() && role2.isEmpty()) - return true; - int pos1 = role1.find( '#' ); - int pos2 = role2.find( '#' ); - bool ret; - if( pos1 < 0 || pos2 < 0 || pos1 != pos2 ) - ret = role1 == role2; - else - ret = qstrncmp( role1, role2, pos1 ) == 0; - kDebug() << "WR:" << role1 << ":" << pos1 << ":" << role2 << ":" << pos2 << ":::" << ret << endl; - return ret; - } -#endif - static const char* const window_type_names[] = { "Unknown", "Normal" , "Desktop", "Dock", "Toolbar", "Menu", "Dialog",