summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileCache.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-03-28 21:35:50 (GMT)
committerBrad King <brad.king@kitware.com>2022-04-01 14:18:46 (GMT)
commit912319375823ddd2b8ccf4f5e344cafeca73eb29 (patch)
treeaa4b0b80496e04d21a1ed165f3ebcb7011477a7e /Source/cmListFileCache.cxx
parent6e1be5dbefab3e7317502e3d0fe4b132d0162ae5 (diff)
downloadCMake-912319375823ddd2b8ccf4f5e344cafeca73eb29.zip
CMake-912319375823ddd2b8ccf4f5e344cafeca73eb29.tar.gz
CMake-912319375823ddd2b8ccf4f5e344cafeca73eb29.tar.bz2
cmListFileBacktrace: Clarify call sites that only push a file path
This removes the last part of the `cmListFileBacktrace` interface that needs to know the type of data in its stack.
Diffstat (limited to 'Source/cmListFileCache.cxx')
-rw-r--r--Source/cmListFileCache.cxx11
1 files changed, 0 insertions, 11 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx
index b90af08..941d283 100644
--- a/Source/cmListFileCache.cxx
+++ b/Source/cmListFileCache.cxx
@@ -470,17 +470,6 @@ cmListFileBacktrace::cmListFileBacktrace(std::shared_ptr<Entry const> top)
{
}
-cmListFileBacktrace cmListFileBacktrace::Push(std::string const& file) const
-{
- // We are entering a file-level scope but have not yet reached
- // any specific line or command invocation within it. This context
- // is useful to print when it is at the top but otherwise can be
- // skipped during call stack printing.
- cmListFileContext lfc;
- lfc.FilePath = file;
- return this->Push(lfc);
-}
-
cmListFileBacktrace cmListFileBacktrace::Push(
cmListFileContext const& lfc) const
{