diff options
author | Brad King <brad.king@kitware.com> | 2021-12-07 22:22:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-12-08 15:31:48 (GMT) |
commit | d0ceb409ff2d9eecb992e7d37780137f9330a748 (patch) | |
tree | 7af8fae761731eae86207b16731f0d4960d5ae99 | |
parent | 7b677dbb9279a575ec6b5f79daa78acfec241b6a (diff) | |
download | CMake-d0ceb409ff2d9eecb992e7d37780137f9330a748.zip CMake-d0ceb409ff2d9eecb992e7d37780137f9330a748.tar.gz CMake-d0ceb409ff2d9eecb992e7d37780137f9330a748.tar.bz2 |
cmListFileBacktrace: Remove unused "Depth" method
-rw-r--r-- | Source/cmListFileCache.cxx | 11 | ||||
-rw-r--r-- | Source/cmListFileCache.h | 4 |
2 files changed, 0 insertions, 15 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx index c167db5..9f8a18f 100644 --- a/Source/cmListFileCache.cxx +++ b/Source/cmListFileCache.cxx @@ -497,17 +497,6 @@ cmListFileContext const& cmListFileBacktrace::Top() const return this->TopEntry->Context; } -size_t cmListFileBacktrace::Depth() const -{ - size_t depth = 0; - if (Entry const* cur = this->TopEntry.get()) { - for (; cur; cur = cur->Parent.get()) { - ++depth; - } - } - return depth; -} - bool cmListFileBacktrace::Empty() const { return !this->TopEntry; diff --git a/Source/cmListFileCache.h b/Source/cmListFileCache.h index aaf672c..65b4772 100644 --- a/Source/cmListFileCache.h +++ b/Source/cmListFileCache.h @@ -4,7 +4,6 @@ #include "cmConfigure.h" // IWYU pragma: keep -#include <cstddef> #include <iosfwd> #include <memory> #include <string> @@ -180,9 +179,6 @@ public: // This may be called only if Empty() would return false. cmListFileContext const& Top() const; - // Get the number of 'frames' in this backtrace - size_t Depth() const; - // Return true if this backtrace is empty. bool Empty() const; |