From 11610dc9d2fb93741f541626f078b423e4c4356e Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Wed, 8 Mar 2023 02:55:06 +0700 Subject: [PATCH] Remove code that used unneeded `MapList_Feature` --- sources/MapList/MapList.uc | 2 +- sources/StartUp.uc | 3 --- sources/VotingHandlerAdapter.uc | 6 ------ 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/sources/MapList/MapList.uc b/sources/MapList/MapList.uc index d5891ce..c9f0e7a 100644 --- a/sources/MapList/MapList.uc +++ b/sources/MapList/MapList.uc @@ -1,5 +1,5 @@ /** - * Config for `MapList_Feature`. + * Config class for storing map lists. * Copyright 2023 Anton Tarasenko * 2023 Shtoyan *------------------------------------------------------------------------------ diff --git a/sources/StartUp.uc b/sources/StartUp.uc index b9c698d..184603c 100644 --- a/sources/StartUp.uc +++ b/sources/StartUp.uc @@ -126,9 +126,6 @@ public function array GetAutoConfigurationInfo() local array result; availableFeatures = _.environment.GetAvailableFeatures(); - // We only have a single feature, so instead of adding our own manifest, simply add it here - class'MapList_Feature'.static.LoadConfigs(); - availableFeatures[availableFeatures.length] = class'MapList_Feature'; for (i = 0; i < availableFeatures.length; i += 1) { autoConfig = availableFeatures[i].static.GetAutoEnabledConfig(); diff --git a/sources/VotingHandlerAdapter.uc b/sources/VotingHandlerAdapter.uc index 1589d98..b892455 100644 --- a/sources/VotingHandlerAdapter.uc +++ b/sources/VotingHandlerAdapter.uc @@ -141,15 +141,9 @@ public final function InjectIntoVotingHandler() } public function TrySetupMapList() { - local MapList_Feature mapListFeature; local Text currentConfigName; local MapList currentConfig; - mapListFeature = MapList_Feature(class'MapList_Feature'.static.GetEnabledInstance()); - if (mapListFeature == none) { - return; - } - currentConfigName = mapListFeature.GetCurrentConfig(); if (currentConfigName != none) { currentConfig = MapList(class'MapList'.static.GetConfigInstance(currentConfigName)); }