MCPcopy Create free account
hub / github.com/amule-project/amule / RemoveRef

Method RemoveRef

src/SharedFileList.cpp:100–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98 }
99
100 int RemoveRef(CKnownFile* pFile) {
101 KnownFileArray::iterator it = std::find(m_aFiles.begin(), m_aFiles.end(), pFile);
102 if (it != m_aFiles.end()) {
103 m_aFiles.erase(it);
104 }
105 return m_aFiles.size();
106 }
107
108 void RemoveAllReferences() {
109 m_aFiles.clear();

Callers 1

RemoveKeywordMethod · 0.80

Calls 4

eraseMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected