summaryrefslogtreecommitdiffstats
path: root/Source/cmVariableWatchCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-06-03 17:04:56 (GMT)
committerBrad King <brad.king@kitware.com>2013-06-03 17:13:07 (GMT)
commit515f9af0d48be569adb51dfb43ff483cfc0d5156 (patch)
tree544452bf751f1e8f3028dcd0b08b0f4a8386eb24 /Source/cmVariableWatchCommand.cxx
parentc63d30048bcf5bd6efa1e038b36c5efd29e34749 (diff)
downloadCMake-515f9af0d48be569adb51dfb43ff483cfc0d5156.zip
CMake-515f9af0d48be569adb51dfb43ff483cfc0d5156.tar.gz
CMake-515f9af0d48be569adb51dfb43ff483cfc0d5156.tar.bz2
variable_watch: Remove leftover debugging code (#14187)
When a watch does not specify a command to call then variable_watch prints out a message to stderr. Remove code after that which collects all variable values to construct a message that is never printed. Otherwise such code causes a READ_ACCESS watch to trigger on all variables in the currents scope. Reported-by: Yichao Yu <yyc1992@gmail.com>
Diffstat (limited to 'Source/cmVariableWatchCommand.cxx')
-rw-r--r--Source/cmVariableWatchCommand.cxx13
1 files changed, 0 insertions, 13 deletions
diff --git a/Source/cmVariableWatchCommand.cxx b/Source/cmVariableWatchCommand.cxx
index a432943..8532930 100644
--- a/Source/cmVariableWatchCommand.cxx
+++ b/Source/cmVariableWatchCommand.cxx
@@ -122,19 +122,6 @@ void cmVariableWatchCommand::VariableAccessed(const std::string& variable,
msg << " The value of the variable: \"" << newValue << "\"" << std::endl;
msg << " The list file stack: " << stack.c_str();
cmSystemTools::Message(msg.str().c_str());
- std::vector<std::string> vars = makefile->GetDefinitions();
- cmOStringStream msg2;
- size_t cc;
- for ( cc = 0; cc < vars.size(); cc ++ )
- {
- if ( vars[cc] == variable )
- {
- continue;
- }
- msg2 << vars[cc] << " = \""
- << makefile->GetDefinition(vars[cc].c_str()) << "\"" << std::endl;
- }
- //cmSystemTools::Message(msg2.str().c_str());
}
this->InCallback = false;
}