| 63 | } |
| 64 | |
| 65 | bool |
| 66 | InterfaceTree::removeInterface(common::ClientInterfacePtr const &iface) { |
| 67 | auto &ifaces = getInterfacesForPath(iface->getPath()); |
| 68 | auto it = std::find(begin(ifaces), end(ifaces), iface); |
| 69 | if (it != end(ifaces)) { |
| 70 | ifaces.erase(it); |
| 71 | } |
| 72 | return ifaces.empty(); |
| 73 | } |
| 74 | |
| 75 | common::InterfaceList & |
| 76 | InterfaceTree::getInterfacesForPath(std::string const &path) { |
no test coverage detected