MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / removeInterface

Method removeInterface

src/osvr/Client/InterfaceTree.cpp:65–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers 1

releaseInterfaceMethod · 0.80

Calls 2

eraseMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected