From b258187912f32d3c50c405b50c43d975a72e4ce2 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Mon, 15 Jan 2024 23:10:52 +0100 Subject: [PATCH] remove getPaths() --- src/singletons/Paths.cpp | 9 --------- src/singletons/Paths.hpp | 4 ---- 2 files changed, 13 deletions(-) diff --git a/src/singletons/Paths.cpp b/src/singletons/Paths.cpp index 3d0ad4773..7b7bebdbb 100644 --- a/src/singletons/Paths.cpp +++ b/src/singletons/Paths.cpp @@ -15,12 +15,8 @@ using namespace std::literals; namespace chatterino { -Paths *Paths::instance = nullptr; - Paths::Paths() { - this->instance = this; - this->initAppFilePathHash(); this->initCheckPortable(); @@ -146,9 +142,4 @@ void Paths::initSubDirectories() this->crashdumpDirectory = makePath("Crashes"); } -Paths *getPaths() -{ - return Paths::instance; -} - } // namespace chatterino diff --git a/src/singletons/Paths.hpp b/src/singletons/Paths.hpp index 0fdad8349..bfabd1b1e 100644 --- a/src/singletons/Paths.hpp +++ b/src/singletons/Paths.hpp @@ -9,8 +9,6 @@ namespace chatterino { class Paths { public: - static Paths *instance; - Paths(); // Root directory for the configuration files. %APPDATA%/chatterino or @@ -59,6 +57,4 @@ private: QString cacheDirectory_; }; -Paths *getPaths(); - } // namespace chatterino