summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx12
-rw-r--r--Source/cmGlobalNinjaGenerator.h7
2 files changed, 1 insertions, 18 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index 4773c37..11d8653 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -377,18 +377,10 @@ cmGlobalNinjaGenerator::cmGlobalNinjaGenerator()
, CompileCommandsStream(0)
, Rules()
, AllDependencies()
- , CommentStream(0)
{
// // Ninja is not ported to non-Unix OS yet.
// this->ForceUnixPaths = true;
this->FindMakeProgramFile = "CMakeNinjaFindMake.cmake";
- this->ClearCommentStream();
-}
-
-void cmGlobalNinjaGenerator::ClearCommentStream()
-{
- delete CommentStream;
- CommentStream = new cmsys_ios::stringstream(std::ios::out);
}
@@ -550,12 +542,10 @@ void cmGlobalNinjaGenerator::AddRule(const std::string& name,
// Do not add the same rule twice.
if (this->HasRule(name))
{
- this->ClearCommentStream();
return;
}
- *this->RulesFileStream << this->GetCommentStream().str();
- this->ClearCommentStream();
+ *this->RulesFileStream;
this->Rules.insert(name);
cmGlobalNinjaGenerator::WriteRule(*this->RulesFileStream,
diff --git a/Source/cmGlobalNinjaGenerator.h b/Source/cmGlobalNinjaGenerator.h
index 54677bc..2055375 100644
--- a/Source/cmGlobalNinjaGenerator.h
+++ b/Source/cmGlobalNinjaGenerator.h
@@ -220,11 +220,6 @@ public:
cmGeneratedFileStream* GetRulesFileStream() const
{ return this->RulesFileStream; }
- void ClearCommentStream();
- cmsys_ios::stringstream& GetCommentStream() const
- { return *this->CommentStream; }
-
-
void AddCXXCompileCommand(const std::string &commandLine,
const std::string &sourceFile);
@@ -357,8 +352,6 @@ private:
static bool UsingMinGW;
- cmsys_ios::stringstream* CommentStream;
-
};
#endif // ! cmGlobalNinjaGenerator_h