From bb1e8c3adfc4b188b0f340d757591039ffda4ef9 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sat, 16 May 2015 16:43:17 +0200 Subject: [PATCH] cmMakefile: Remove Print() debugging facilities. They don't print things that are important in the modern implementation. --- Source/cmMakefile.cxx | 53 ------------------------------------------- Source/cmMakefile.h | 9 -------- 2 files changed, 62 deletions(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index a95f4b836..1eadecf24 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -253,59 +253,6 @@ cmMakefile::~cmMakefile() } } -void cmMakefile::PrintStringVector(const char* s, - const std::vector& v) const -{ - std::cout << s << ": ( \n" << cmWrap('"', v, '"', " ") << ")\n"; -} - -void cmMakefile -::PrintStringVector(const char* s, - const std::vector >& v) const -{ - std::cout << s << ": ( \n"; - for(std::vector >::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::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 72d8ec6d4..f96ca92f2 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& 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 >& v) const; - void PrintStringVector(const char* s, - const std::vector& v) const; void AddDefaultDefinitions(); typedef std::vector FunctionBlockersType;