From c803e9fc58c2926fd8ca37f0efe526e791d61706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 30 May 2021 11:10:20 +0200 Subject: [PATCH] Remove createdPath_ from Config.cpp/h, seems pretty useless. --- Core/Config.cpp | 5 +---- Core/Config.h | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index 5b2779e13a..3ac1112b20 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -1607,10 +1607,7 @@ const Path Config::FindConfigFile(const std::string &baseFilename) { if (!File::Exists(filename)) { // Make sure at least the directory it's supposed to be in exists. Path path = filename.NavigateUp(); - if (createdPath_ != path) { - File::CreateFullPath(path); - createdPath_ = path; - } + File::CreateFullPath(path); } return filename; } diff --git a/Core/Config.h b/Core/Config.h index d7500b7d6c..49211f29db 100644 --- a/Core/Config.h +++ b/Core/Config.h @@ -538,7 +538,6 @@ private: Path controllerIniFilename_; std::vector searchPath_; Path defaultPath_; - Path createdPath_; }; std::map> GetLangValuesMapping();