MCPcopy Create free account
hub / github.com/apache/mesos / remove

Method remove

3rdparty/libprocess/src/help.cpp:129–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127
128
129bool Help::remove(const string& id, const string& name)
130{
131 if (helps.count(id) == 0 || helps[id].count(name) == 0) {
132 return false;
133 }
134
135 helps[id].erase(name);
136
137 if (helps[id].empty()) {
138 helps.erase(id);
139 }
140
141 return true;
142}
143
144
145bool Help::remove(const string& id)

Callers 2

synchronizedFunction · 0.45
notifyMethod · 0.45

Calls 3

countMethod · 0.45
eraseMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected