Skip to content
Snippets Groups Projects
Commit 0a1b4875 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm unused withExecutableSuffix

parent 4eed0885
No related branches found
No related tags found
1 merge request!595rm OSInfo.h
......@@ -19,8 +19,6 @@
namespace GUI::Util::OS {
#define QTC_WIN_EXE_SUFFIX ".exe"
enum EOsType { WINDOWS_OS, LINUX_OS, MAC_OS, OTHER_UNIX_OS, OTHER_OS };
class OsSpecificAspects {
......@@ -30,14 +28,6 @@ public:
{
}
QString withExecutableSuffix(const QString& executable) const
{
QString finalName = executable;
if (m_osType == WINDOWS_OS)
finalName += QLatin1String(QTC_WIN_EXE_SUFFIX);
return finalName;
}
Qt::CaseSensitivity fileNameCaseSensitivity() const
{
return m_osType == WINDOWS_OS ? Qt::CaseInsensitive : Qt::CaseSensitive;
......@@ -63,11 +53,6 @@ public:
static bool isMacHost() { return hostOs() == MAC_OS; }
static inline bool isAnyUnixHost();
static QString withExecutableSuffix(const QString& executable)
{
return hostOsAspects().withExecutableSuffix(executable);
}
static Qt::CaseSensitivity fileNameCaseSensitivity()
{
return hostOsAspects().fileNameCaseSensitivity();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment