From d378877a5c18c86fbce98662b6a54ffdac6172b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Kotiuk?= Date: Sun, 27 Oct 2024 15:34:43 +0100 Subject: [PATCH] refactor: Remove unused funtion findWinConfigPath --- src/common.h | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/common.h b/src/common.h index 5af179634..aa6346a45 100644 --- a/src/common.h +++ b/src/common.h @@ -60,24 +60,6 @@ static QString findWinDefaultConfigPath() return temp; } -static QString findWinConfigPath(QString configFileName) -{ - QString temp; - QFileInfo localConfigInfo(findWinLocalConfigPath().append("/").append(configFileName)); - QFileInfo systemConfigInfo(findWinSystemConfigPath().append("/").append(configFileName)); - if (localConfigInfo.exists() && localConfigInfo.isWritable()) - { - temp = localConfigInfo.absoluteFilePath(); - } else if (systemConfigInfo.exists() && systemConfigInfo.isWritable()) - { - temp = systemConfigInfo.absoluteFilePath(); - } else - { - temp = findWinDefaultConfigPath().append("/").append(configFileName); - } - - return temp; -} #endif namespace PadderCommon {