MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / deleteXPath

Method deleteXPath

radiantcore/xmlregistry/RegistryTree.cpp:58–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58std::size_t RegistryTree::deleteXPath(const std::string& path)
59{
60 // Add the toplevel node to the path if required
61 std::string fullPath = prepareKey(path);
62 xml::NodeList nodeList = _tree.findXPath(fullPath);
63
64 for (xml::Node& node : nodeList)
65 {
66 // unlink and delete the node
67 node.erase();
68 }
69
70 return nodeList.size();
71}
72
73xml::Node RegistryTree::createKeyWithName(const std::string& path,
74 const std::string& key,

Callers

nothing calls this directly

Calls 3

findXPathMethod · 0.45
eraseMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected