Skip to content

Commit d378877

Browse files
committed
refactor: Remove unused funtion findWinConfigPath
1 parent b60fe81 commit d378877

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/common.h

-18
Original file line numberDiff line numberDiff line change
@@ -60,24 +60,6 @@ static QString findWinDefaultConfigPath()
6060
return temp;
6161
}
6262

63-
static QString findWinConfigPath(QString configFileName)
64-
{
65-
QString temp;
66-
QFileInfo localConfigInfo(findWinLocalConfigPath().append("/").append(configFileName));
67-
QFileInfo systemConfigInfo(findWinSystemConfigPath().append("/").append(configFileName));
68-
if (localConfigInfo.exists() && localConfigInfo.isWritable())
69-
{
70-
temp = localConfigInfo.absoluteFilePath();
71-
} else if (systemConfigInfo.exists() && systemConfigInfo.isWritable())
72-
{
73-
temp = systemConfigInfo.absoluteFilePath();
74-
} else
75-
{
76-
temp = findWinDefaultConfigPath().append("/").append(configFileName);
77-
}
78-
79-
return temp;
80-
}
8163
#endif
8264

8365
namespace PadderCommon {

0 commit comments

Comments
 (0)