MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / remove

Method remove

src/clientbase/EventClientList.cpp:79–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77//============================================================================//
78
79bool EventClientList::remove(const EventClient* ec) {
80 for (iterator it = clients.begin(); it != clients.end(); ++it) {
81 EventClient* ec2 = *it;
82 if (ec == ec2) {
83 *it = &DummyEventClient::instance;
84 return true;
85 }
86 }
87 return false;
88}
89
90
91//============================================================================//

Callers 1

purifyMethod · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected