1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-08 07:17:49 +02:00

Eliminate last use of PluginManager by ModuleManager, breaking cycle

This commit is contained in:
Paul Licameli
2020-02-20 07:48:26 -05:00
parent 02b61532fe
commit d5a22dfb15
3 changed files with 3 additions and 19 deletions

View File

@@ -31,7 +31,6 @@ i.e. an alternative to the usual interface, for Audacity.
#include "FileNames.h"
#include "MemoryX.h"
#include "PluginManager.h"
#include "audacity/PluginInterface.h"
@@ -488,22 +487,6 @@ void ModuleInterfaceDeleter::operator() (ModuleInterface *pInterface) const
}
}
PluginPaths ModuleManager::FindPluginsForProvider(const PluginID & providerID,
const PluginPath & path)
{
// Instantiate if it hasn't already been done
if (mDynModules.find(providerID) == mDynModules.end())
{
// If it couldn't be created, just give up and return an empty list
if (!CreateProviderInstance(providerID, path))
{
return {};
}
}
return mDynModules[providerID]->FindPluginPaths(PluginManager::Get());
}
bool ModuleManager::RegisterEffectPlugin(const PluginID & providerID, const PluginPath & path, TranslatableString &errMsg)
{
errMsg = {};