| 127 | |
| 128 | |
| 129 | bool 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 | |
| 145 | bool Help::remove(const string& id) |
no test coverage detected