cmListFileBacktrace: Remove unused "bottom" entry

All uses of `GetBottom` by clients have been removed, so drop the
method and its supporting infrastructure.
This commit is contained in:
Brad King
2021-12-07 16:26:58 -05:00
parent 56dc22d488
commit 7b677dbb92
4 changed files with 6 additions and 60 deletions
+1 -12
View File
@@ -13,7 +13,6 @@
#include <cm/optional>
#include "cmStateSnapshot.h"
#include "cmSystemTools.h"
/** \class cmListFileCache
@@ -164,23 +163,13 @@ private:
class cmListFileBacktrace
{
public:
// Default-constructed backtrace may not be used until after
// set via assignment from a backtrace constructed with a
// valid snapshot.
// Default-constructed backtrace is empty.
cmListFileBacktrace() = default;
// Construct an empty backtrace whose bottom sits in the directory
// indicated by the given valid snapshot.
cmListFileBacktrace(cmStateSnapshot const& snapshot);
cmStateSnapshot GetBottom() const;
// Get a backtrace with the given file scope added to the top.
// May not be called until after construction with a valid snapshot.
cmListFileBacktrace Push(std::string const& file) const;
// Get a backtrace with the given call context added to the top.
// May not be called until after construction with a valid snapshot.
cmListFileBacktrace Push(cmListFileContext const& lfc) const;
// Get a backtrace with the top level removed.