Remove now-unneccessary fakeDtor

This commit is contained in:
Rasmus Karlsson 2024-01-07 14:38:27 +01:00
parent 60a913e4ae
commit b62d2577cb
3 changed files with 1 additions and 12 deletions

View file

@ -147,11 +147,6 @@ Application::Application(Settings &_settings, Paths &_paths, const Args &_args)
Application::~Application() = default;
void Application::fakeDtor()
{
this->twitchPubSub.reset();
}
void Application::initialize(Settings &settings, Paths &paths)
{
assert(isAppInitialized == false);

View file

@ -98,12 +98,6 @@ public:
Application &operator=(const Application &) = delete;
Application &operator=(Application &&) = delete;
/**
* In the interim, before we remove _exit(0); from RunGui.cpp,
* this will destroy things we know can be destroyed
*/
void fakeDtor();
void initialize(Settings &settings, Paths &paths);
void load();
void save();

View file

@ -294,6 +294,6 @@ void runGui(QApplication &a, Paths &paths, Settings &settings, const Args &args)
// flushing windows clipboard to keep copied messages
flushClipboard();
#endif
app.fakeDtor();
}
} // namespace chatterino