| 206 | } |
| 207 | |
| 208 | static void MaybeRemoveGroup(const string &group_name) { |
| 209 | LOCK(*cs_groups); |
| 210 | for (size_t i = 0; i < groups.size(); i++) { |
| 211 | if (groups[i].header.name == group_name) { |
| 212 | groups.erase(groups.begin() + i); |
| 213 | return; |
| 214 | } |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | static bool LoadIPGroupsFromFile(const boost::filesystem::path &path, const string &group_name, int priority) { |
| 219 | boost::filesystem::ifstream stream(path); |
no test coverage detected