MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / removeNodeFromParent

Method removeNodeFromParent

source/io/fsnode.cpp:52–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void FsNode::removeNodeFromParent() {
53 std::shared_ptr<FsNode> parent = this->getParent().lock();
54 if (parent) {
55 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(parent->childrenByNameMutex);
56 parent->childrenByName.remove(this->name);
57 }
58}
59
60void FsNode::loadChildren() {
61 if (!this->hasLoadedChildrenFromFileSystem) {

Callers 4

removeMethod · 0.80
renameMethod · 0.80
removeMethod · 0.80
symlinkInDirectoryFunction · 0.80

Calls 3

getParentMethod · 0.95
lockMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected