]> Dogcows Code - chaz/openbox/commitdiff
erase from the map more efficiently
authorDana Jansens <danakj@orodu.net>
Wed, 4 Dec 2002 07:34:09 +0000 (07:34 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 4 Dec 2002 07:34:09 +0000 (07:34 +0000)
src/openbox.cc

index d17a55000b8dcfb70ab2eb39accb9d66ba2afc75..d95de520ed3530e97a2c001e3d76c48de47f45dc 100644 (file)
@@ -265,10 +265,7 @@ void Openbox::addClient(Window window, OBClient *client)
 
 void Openbox::removeClient(Window window)
 {
-  _clients[window] = 0;
-  ClientMap::iterator it = _clients.find(window);
-  if (it != _clients.end())
-    _clients.erase(it);
+  _clients.erase(window);
 }
 
 
This page took 0.02495 seconds and 4 git commands to generate.