MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / removeContentItem

Method removeContentItem

src/App/Metadata.cpp:404–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404void Metadata::removeContentItem(const std::string& tag, const std::string& itemName)
405{
406 auto tagRange = _content.equal_range(tag);
407 auto foundItem =
408 std::find_if(tagRange.first, tagRange.second, [&itemName](const auto& check) -> bool {
409 return itemName == check.second.name();
410 });
411 if (foundItem != tagRange.second) {
412 _content.erase(foundItem);
413 }
414}
415
416void Metadata::removeMaintainer(const Meta::Contact& maintainer)
417{

Callers 1

deleteUserPackMethod · 0.45

Calls 2

nameMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected