mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Remove now-unneccessary fakeDtor
This commit is contained in:
parent
60a913e4ae
commit
b62d2577cb
|
@ -147,11 +147,6 @@ Application::Application(Settings &_settings, Paths &_paths, const Args &_args)
|
||||||
|
|
||||||
Application::~Application() = default;
|
Application::~Application() = default;
|
||||||
|
|
||||||
void Application::fakeDtor()
|
|
||||||
{
|
|
||||||
this->twitchPubSub.reset();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Application::initialize(Settings &settings, Paths &paths)
|
void Application::initialize(Settings &settings, Paths &paths)
|
||||||
{
|
{
|
||||||
assert(isAppInitialized == false);
|
assert(isAppInitialized == false);
|
||||||
|
|
|
@ -98,12 +98,6 @@ public:
|
||||||
Application &operator=(const Application &) = delete;
|
Application &operator=(const Application &) = delete;
|
||||||
Application &operator=(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 initialize(Settings &settings, Paths &paths);
|
||||||
void load();
|
void load();
|
||||||
void save();
|
void save();
|
||||||
|
|
|
@ -294,6 +294,6 @@ void runGui(QApplication &a, Paths &paths, Settings &settings, const Args &args)
|
||||||
// flushing windows clipboard to keep copied messages
|
// flushing windows clipboard to keep copied messages
|
||||||
flushClipboard();
|
flushClipboard();
|
||||||
#endif
|
#endif
|
||||||
app.fakeDtor();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace chatterino
|
} // namespace chatterino
|
||||||
|
|
Loading…
Reference in a new issue