Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
0a1b4875
Commit
0a1b4875
authored
3 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rm unused withExecutableSuffix
parent
4eed0885
No related branches found
No related tags found
1 merge request
!595
rm OSInfo.h
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GUI/Util/OSInfo.h
+0
-15
0 additions, 15 deletions
GUI/Util/OSInfo.h
with
0 additions
and
15 deletions
GUI/Util/OSInfo.h
+
0
−
15
View file @
0a1b4875
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment