summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-05-16 14:43:17 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-05-19 20:36:50 (GMT)
commitbb1e8c3adfc4b188b0f340d757591039ffda4ef9 (patch)
treeaeda74441c6cbe7f3d2a558f72b1b5f655437800
parent1363bff83a8e525814bbcfd1e90173d392ecc52b (diff)
downloadCMake-bb1e8c3adfc4b188b0f340d757591039ffda4ef9.zip
CMake-bb1e8c3adfc4b188b0f340d757591039ffda4ef9.tar.gz
CMake-bb1e8c3adfc4b188b0f340d757591039ffda4ef9.tar.bz2
cmMakefile: Remove Print() debugging facilities.
They don't print things that are important in the modern implementation.
-rw-r--r--Source/cmMakefile.cxx53
-rw-r--r--Source/cmMakefile.h9
2 files changed, 0 insertions, 62 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index a95f4b8..1eadecf 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -253,59 +253,6 @@ cmMakefile::~cmMakefile()
}
}
-void cmMakefile::PrintStringVector(const char* s,
- const std::vector<std::string>& v) const
-{
- std::cout << s << ": ( \n" << cmWrap('"', v, '"', " ") << ")\n";
-}
-
-void cmMakefile
-::PrintStringVector(const char* s,
- const std::vector<std::pair<std::string, bool> >& v) const
-{
- std::cout << s << ": ( \n";
- for(std::vector<std::pair<std::string, bool> >::const_iterator i
- = v.begin(); i != v.end(); ++i)
- {
- std::cout << i->first << " " << i->second;
- }
- std::cout << " )\n";
-}
-
-
-// call print on all the classes in the makefile
-void cmMakefile::Print() const
-{
- // print the class lists
- std::cout << "classes:\n";
-
- std::cout << " this->Targets: ";
- for (cmTargets::iterator l = this->Targets.begin();
- l != this->Targets.end(); l++)
- {
- std::cout << l->first << std::endl;
- }
-
- std::cout << " this->StartOutputDirectory; " <<
- this->GetCurrentBinaryDirectory() << std::endl;
- std::cout << " this->HomeOutputDirectory; " <<
- this->GetHomeOutputDirectory() << std::endl;
- std::cout << " this->cmStartDirectory; " <<
- this->GetCurrentSourceDirectory() << std::endl;
- std::cout << " this->cmHomeDirectory; " <<
- this->GetHomeDirectory() << std::endl;
- std::cout << " this->ProjectName; "
- << this->ProjectName << std::endl;
- this->PrintStringVector("this->LinkDirectories", this->LinkDirectories);
-#if defined(CMAKE_BUILD_WITH_CMAKE)
- for( std::vector<cmSourceGroup>::const_iterator i =
- this->SourceGroups.begin(); i != this->SourceGroups.end(); ++i)
- {
- std::cout << "Source Group: " << i->GetName() << std::endl;
- }
-#endif
-}
-
//----------------------------------------------------------------------------
void cmMakefile::IssueMessage(cmake::MessageType t,
std::string const& text) const
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 72d8ec6..f96ca92 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -157,11 +157,6 @@ public:
*/
void FinalPass();
- /**
- * Print the object state to std::cout.
- */
- void Print() const;
-
/** Add a custom command to the build. */
void AddCustomCommandToTarget(const std::string& target,
const std::vector<std::string>& byproducts,
@@ -912,10 +907,6 @@ private:
friend class cmMakeDepend; // make depend needs direct access
// to the Sources array
- void PrintStringVector(const char* s, const
- std::vector<std::pair<std::string, bool> >& v) const;
- void PrintStringVector(const char* s,
- const std::vector<std::string>& v) const;
void AddDefaultDefinitions();
typedef std::vector<cmFunctionBlocker*> FunctionBlockersType;