1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Remove unused function and data member

This commit is contained in:
Paul Licameli
2020-02-19 15:50:35 -05:00
parent 6cd4fce29b
commit eb038972b0
2 changed files with 0 additions and 38 deletions

View File

@@ -539,38 +539,6 @@ void ModuleManager::RegisterModule(ModuleInterface *inModule)
PluginManager::Get().RegisterPlugin(inModule);
}
void ModuleManager::FindAllPlugins(PluginIDs & providers, PluginPaths & paths)
{
PluginManager & pm = PluginManager::Get();
wxArrayString modIDs;
PluginPaths modPaths;
const PluginDescriptor *plug = pm.GetFirstPlugin(PluginTypeModule);
while (plug)
{
modIDs.push_back(plug->GetID());
modPaths.push_back(plug->GetPath());
plug = pm.GetNextPlugin(PluginTypeModule);
}
for (size_t i = 0, cntIds = modIDs.size(); i < cntIds; i++)
{
PluginID providerID = modIDs[i];
auto module = CreateProviderInstance(providerID, modPaths[i]);
if (!module)
continue;
auto newpaths = module->FindPluginPaths(pm);
for (size_t j = 0, cntPaths = newpaths.size(); j < cntPaths; j++)
{
providers.push_back(providerID);
paths.push_back(newpaths[j]);
}
}
}
PluginPaths ModuleManager::FindPluginsForProvider(const PluginID & providerID,
const PluginPath & path)
{