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:
@@ -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 = {};
|
||||
|
||||
Reference in New Issue
Block a user