You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Removed call to FindModules from FSourceControlModule
This was older code from before we had modular features, and is no longer required as modular features already load and register themselves. [CL 2493586 by Jamie Dale in Main branch]
This commit is contained in:
committed by
Jamie.Dale@epicgames.com
parent
8b501cf460
commit
33cd2ff98f
@@ -179,23 +179,8 @@ void FSourceControlModule::OnSourceControlDialogClosed(const TSharedRef<SWindow>
|
||||
#endif
|
||||
}
|
||||
|
||||
void FSourceControlModule::RefreshSourceControlProviders() const
|
||||
{
|
||||
TArray<FName> ModuleNames;
|
||||
FModuleManager::Get().FindModules(TEXT("*SourceControl"), ModuleNames);
|
||||
ModuleNames.Remove(FName(TEXT("SourceControl")));
|
||||
|
||||
for(int32 ModuleIndex = 0; ModuleIndex < ModuleNames.Num(); ModuleIndex++)
|
||||
{
|
||||
FModuleManager::Get().LoadModule(ModuleNames[ModuleIndex]);
|
||||
}
|
||||
}
|
||||
|
||||
void FSourceControlModule::InitializeSourceControlProviders()
|
||||
{
|
||||
// Look for valid SourceControl modules - they will register themselves as editor features
|
||||
RefreshSourceControlProviders();
|
||||
|
||||
int32 SourceControlCount = IModularFeatures::Get().GetModularFeatureImplementationCount(SourceControlFeatureName);
|
||||
if( SourceControlCount > 0 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user