remove getPaths()

This commit is contained in:
Rasmus Karlsson 2024-01-15 23:10:52 +01:00
parent c98d54812c
commit b258187912
2 changed files with 0 additions and 13 deletions

View file

@ -15,12 +15,8 @@ using namespace std::literals;
namespace chatterino { namespace chatterino {
Paths *Paths::instance = nullptr;
Paths::Paths() Paths::Paths()
{ {
this->instance = this;
this->initAppFilePathHash(); this->initAppFilePathHash();
this->initCheckPortable(); this->initCheckPortable();
@ -146,9 +142,4 @@ void Paths::initSubDirectories()
this->crashdumpDirectory = makePath("Crashes"); this->crashdumpDirectory = makePath("Crashes");
} }
Paths *getPaths()
{
return Paths::instance;
}
} // namespace chatterino } // namespace chatterino

View file

@ -9,8 +9,6 @@ namespace chatterino {
class Paths class Paths
{ {
public: public:
static Paths *instance;
Paths(); Paths();
// Root directory for the configuration files. %APPDATA%/chatterino or // Root directory for the configuration files. %APPDATA%/chatterino or
@ -59,6 +57,4 @@ private:
QString cacheDirectory_; QString cacheDirectory_;
}; };
Paths *getPaths();
} // namespace chatterino } // namespace chatterino