mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-29 23:29:41 +02:00
Remove unused function and data member
This commit is contained in:
parent
6cd4fce29b
commit
eb038972b0
@ -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)
|
||||
{
|
||||
|
@ -69,7 +69,6 @@ using ModuleInterfaceHandle = std::unique_ptr<
|
||||
ModuleInterface, ModuleInterfaceDeleter
|
||||
>;
|
||||
|
||||
typedef std::map<wxString, ModuleMain *> ModuleMainMap;
|
||||
typedef std::map<wxString, ModuleInterfaceHandle> ModuleMap;
|
||||
typedef std::map<ModuleInterface *, std::unique_ptr<wxDynamicLibrary>> LibraryMap;
|
||||
using PluginIDs = wxArrayString;
|
||||
@ -96,9 +95,6 @@ public:
|
||||
// Can be called before Initialize()
|
||||
bool DiscoverProviders();
|
||||
|
||||
// Seems we don't currently use FindAllPlugins
|
||||
void FindAllPlugins(PluginIDs & providers, PluginPaths & paths);
|
||||
|
||||
PluginPaths FindPluginsForProvider(const PluginID & provider, const PluginPath & path);
|
||||
bool RegisterEffectPlugin(const PluginID & provider, const PluginPath & path,
|
||||
TranslatableString &errMsg);
|
||||
@ -123,8 +119,6 @@ private:
|
||||
friend std::default_delete<ModuleManager>;
|
||||
static std::unique_ptr<ModuleManager> mInstance;
|
||||
|
||||
ModuleMainMap mModuleMains;
|
||||
|
||||
// Module objects, also called Providers, can each report availability of any
|
||||
// number of Plug-Ins identified by "paths", and are also factories of
|
||||
// ComponentInterface objects for each path:
|
||||
|
Loading…
x
Reference in New Issue
Block a user