aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/tools/buildgraphlocker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/corelib/tools/buildgraphlocker.cpp')
-rw-r--r--src/lib/corelib/tools/buildgraphlocker.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/lib/corelib/tools/buildgraphlocker.cpp b/src/lib/corelib/tools/buildgraphlocker.cpp
index 4b21b3b91..9127c4baa 100644
--- a/src/lib/corelib/tools/buildgraphlocker.cpp
+++ b/src/lib/corelib/tools/buildgraphlocker.cpp
@@ -42,11 +42,8 @@ namespace qbs {
namespace Internal {
BuildGraphLocker::BuildGraphLocker(const QString &buildGraphFilePath)
-#if HAS_QLOCKFILE
: m_lockFile(buildGraphFilePath + QLatin1String(".lock"))
-#endif
{
-#if HAS_QLOCKFILE
const QString buildDir = QFileInfo(buildGraphFilePath).absolutePath();
if (!QDir::root().mkpath(buildDir))
throw ErrorInfo(Tr::tr("Cannot lock build graph file '%1': Failed to create directory."));
@@ -81,16 +78,11 @@ BuildGraphLocker::BuildGraphLocker(const QString &buildGraphFilePath)
// with the subsequent getLockInfo() failing as well.
throw ErrorInfo(Tr::tr("Cannot lock build graph file '%1' (reason unknown).")
.arg(buildGraphFilePath));
-#else
- Q_UNUSED(buildGraphFilePath);
-#endif
}
BuildGraphLocker::~BuildGraphLocker()
{
-#if HAS_QLOCKFILE
m_lockFile.unlock();
-#endif
}
} // namespace Internal