summaryrefslogtreecommitdiffstats
path: root/Source/cmDepends.h
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2018-03-08 09:09:45 (GMT)
committerCraig Scott <craig.scott@crascit.com>2018-03-08 09:14:42 (GMT)
commit5901699672cce82d9622a02c4c7d22889029ee0c (patch)
tree85cbf837fb21298996a566a871306d73486e175e /Source/cmDepends.h
parente60e4dfc88252aaec53f0d832508d41dff6165fd (diff)
downloadCMake-5901699672cce82d9622a02c4c7d22889029ee0c.zip
CMake-5901699672cce82d9622a02c4c7d22889029ee0c.tar.gz
CMake-5901699672cce82d9622a02c4c7d22889029ee0c.tar.bz2
cmDepends: Remove attempt to change directory that always fails
Nothing ever set `CompileDirectory` except `SetDirectory()`, but nothing ever called that function. Therefore, `CompileDirectory` was always empty for the attempt to change directory in `Check()`, which therefore would always fail. Nothing was checking the result and the code was always going to have no effect.
Diffstat (limited to 'Source/cmDepends.h')
-rw-r--r--Source/cmDepends.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/Source/cmDepends.h b/Source/cmDepends.h
index a4fee3c..4b9e05a 100644
--- a/Source/cmDepends.h
+++ b/Source/cmDepends.h
@@ -31,9 +31,6 @@ public:
path from the build directory to the target file. */
cmDepends(cmLocalGenerator* lg = nullptr, const char* targetDir = "");
- /** at what level will the compile be done from */
- void SetCompileDirectory(const char* dir) { this->CompileDirectory = dir; }
-
/** Set the local generator for the directory in which we are
scanning dependencies. This is not a full local generator; it
has been setup to do relative path conversions for the current
@@ -95,9 +92,6 @@ protected:
virtual bool Finalize(std::ostream& makeDepends,
std::ostream& internalDepends);
- // The directory in which the build rule for the target file is executed.
- std::string CompileDirectory;
-
// The local generator.
cmLocalGenerator* LocalGenerator;