1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-18 09:00:52 +02:00

ModuleManager::mLibs never becomes non-empty. Remove it.

This commit is contained in:
Paul Licameli 2021-05-13 16:26:27 -04:00
parent bd6fb75886
commit dcdddcb7f2
2 changed files with 0 additions and 11 deletions

View File

@ -485,13 +485,6 @@ void ModuleInterfaceDeleter::operator() (ModuleInterface *pInterface) const
if (pInterface)
{
pInterface->Terminate();
auto &libs = ModuleManager::Get().mLibs;
auto iter = libs.find(pInterface);
if (iter != libs.end())
libs.erase(iter); // This causes unloading in ~wxDynamicLibrary
std::unique_ptr < ModuleInterface > { pInterface }; // DELETE it
}
}

View File

@ -120,10 +120,6 @@ private:
// ComponentInterface objects for each path:
ModuleMap mDynModules;
// Dynamically loaded libraries, each one a factory that makes one of the
// (non-built-in) providers:
LibraryMap mLibs;
// Other libraries that receive notifications of events described by
// ModuleDispatchTypes:
std::vector<std::unique_ptr<Module>> mModules;