Skip to content

Commit

Permalink
refactor: Remove unused funtion findWinConfigPath
Browse files Browse the repository at this point in the history
  • Loading branch information
pktiuk committed Oct 27, 2024
1 parent b60fe81 commit d378877
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d378877

Please sign in to comment.