Getting rid of AppController.

This commit is contained in:
tamasmeszaros 2018-11-12 14:52:52 +01:00
parent c227dad8cc
commit a4e1ab2281
13 changed files with 857 additions and 1941 deletions

View file

@ -1,6 +1,5 @@
#include "GUI.hpp"
#include "GUI_App.hpp"
#include "../AppController.hpp"
#include "WipeTowerDialog.hpp"
#include <assert.h>
@ -453,23 +452,4 @@ void desktop_open_datadir_folder()
#endif
}
namespace {
AppControllerPtr g_appctl;
}
AppControllerPtr get_appctl()
{
return g_appctl;
}
void set_cli_appctl()
{
g_appctl = std::make_shared<AppControllerCli>();
}
void set_gui_appctl()
{
g_appctl = std::make_shared<AppControllerGui>();
}
} }