JANITORIAL: Remove DLCMan.init() and its destroy call since it's not required

This commit is contained in:
Ankush Dutt 2023-08-08 14:54:59 +05:30 committed by Eugene Sandulenko
parent e24ad8fc20
commit 97aa1d602a

View File

@ -72,12 +72,6 @@
#include "backends/keymapper/keymap.h"
#include "backends/keymapper/keymapper.h"
#ifdef USE_SCUMMVMDLC
#ifdef USE_LIBCURL
#include "backends/dlc/dlcmanager.h"
#endif
#endif
#ifdef USE_CLOUD
#ifdef USE_LIBCURL
#include "backends/cloud/cloudmanager.h"
@ -705,10 +699,6 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) {
CloudMan.syncSaves();
#endif
#if defined(USE_SCUMMVM) && defined(USE_LIBCURL)
DLCMan.init();
#endif
// Unless a game was specified, show the launcher dialog
if (nullptr == ConfMan.getActiveDomain())
launcherDialog();
@ -857,11 +847,6 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) {
//I think it's important to destroy it after ConnectionManager
Cloud::CloudManager::destroy();
#endif
#endif
#ifdef USE_SCUMMVMDLC
#ifdef USE_LIBCURL
DLC::DLCManager::destroy();
#endif
#endif
PluginManager::instance().unloadDetectionPlugin();
PluginManager::instance().unloadAllPlugins();