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

Method removeLibrary

src/Mod/Material/App/ModelManagerLocal.cpp:143–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143void ModelManagerLocal::removeLibrary(const QString& libraryName)
144{
145 for (auto& library : *_libraryList) {
146 if (library->isName(libraryName)) {
147 _libraryList->remove(library);
148
149 // At this point we should rebuild the model map
150 return;
151 }
152 }
153
154 throw LibraryNotFound();
155}
156
157std::shared_ptr<std::vector<LibraryObject>>
158ModelManagerLocal::libraryModels(const QString& libraryName)

Callers

nothing calls this directly

Calls 2

LibraryNotFoundClass · 0.70
removeMethod · 0.45

Tested by

no test coverage detected