MCPcopy Create free account
hub / github.com/audacity/audacity / removeProjectFromSession

Method removeProjectFromSession

au4/src/appshell/internal/sessionsmanager.cpp:102–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void SessionsManager::removeProjectFromSession(const io::path_t& projectPath)
103{
104 io::paths_t projects = configuration()->sessionProjectsPaths();
105 if (projects.empty()) {
106 return;
107 }
108
109 projects.erase(std::remove(projects.begin(), projects.end(), projectPath), projects.end());
110 configuration()->setSessionProjectsPaths(projects);
111}
112
113void SessionsManager::addProjectToSession(const io::path_t& projectPath)
114{

Callers

nothing calls this directly

Calls 5

sessionProjectsPathsMethod · 0.80
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected