summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorPeter Kuemmel <syntheticpp@gmx.net>2012-06-13 15:23:31 (GMT)
committerPeter Kuemmel <syntheticpp@gmx.net>2012-06-13 15:23:31 (GMT)
commit4b43999ca307894caaabe8857412f5f575e60583 (patch)
treedacd4772dbc191caf34a5a17a0d44b4fdbca7c04 /Source/cmGlobalNinjaGenerator.cxx
parent54a388beaaec8b9a4e4bb6bfb220d5711a866866 (diff)
downloadCMake-4b43999ca307894caaabe8857412f5f575e60583.zip
CMake-4b43999ca307894caaabe8857412f5f575e60583.tar.gz
CMake-4b43999ca307894caaabe8857412f5f575e60583.tar.bz2
Ninja: remove unused CommentStream
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx12
1 files changed, 1 insertions, 11 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,