| 173 | |
| 174 | |
| 175 | void EventHandler::RemoveClient(EventClient* ec) { |
| 176 | clientList.remove(ec); |
| 177 | clientList.purify(); |
| 178 | clientSet.erase(ec); |
| 179 | |
| 180 | EventMap::const_iterator it; |
| 181 | for (it = eventMap.begin(); it != eventMap.end(); ++it) { |
| 182 | const EventInfo& ei = it->second; |
| 183 | if (ei.IsManaged() && (ei.GetList() != NULL)) { |
| 184 | ei.GetList()->remove(ec); |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | GfxBlockMgr::removeClient(ec); |
| 189 | |
| 190 | //??? RemoveClientActions(ec, syncedActions); |
| 191 | //??? RemoveClientActions(ec, unsyncedActions); |
| 192 | } |
| 193 | |
| 194 | |
| 195 | //============================================================================// |