Ninja: remove unused CommentStream
This commit is contained in:
parent
54a388beaa
commit
4b43999ca3
|
@ -377,18 +377,10 @@ cmGlobalNinjaGenerator::cmGlobalNinjaGenerator()
|
||||||
, CompileCommandsStream(0)
|
, CompileCommandsStream(0)
|
||||||
, Rules()
|
, Rules()
|
||||||
, AllDependencies()
|
, AllDependencies()
|
||||||
, CommentStream(0)
|
|
||||||
{
|
{
|
||||||
// // Ninja is not ported to non-Unix OS yet.
|
// // Ninja is not ported to non-Unix OS yet.
|
||||||
// this->ForceUnixPaths = true;
|
// this->ForceUnixPaths = true;
|
||||||
this->FindMakeProgramFile = "CMakeNinjaFindMake.cmake";
|
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.
|
// Do not add the same rule twice.
|
||||||
if (this->HasRule(name))
|
if (this->HasRule(name))
|
||||||
{
|
{
|
||||||
this->ClearCommentStream();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
*this->RulesFileStream << this->GetCommentStream().str();
|
*this->RulesFileStream;
|
||||||
this->ClearCommentStream();
|
|
||||||
|
|
||||||
this->Rules.insert(name);
|
this->Rules.insert(name);
|
||||||
cmGlobalNinjaGenerator::WriteRule(*this->RulesFileStream,
|
cmGlobalNinjaGenerator::WriteRule(*this->RulesFileStream,
|
||||||
|
|
|
@ -220,11 +220,6 @@ public:
|
||||||
cmGeneratedFileStream* GetRulesFileStream() const
|
cmGeneratedFileStream* GetRulesFileStream() const
|
||||||
{ return this->RulesFileStream; }
|
{ return this->RulesFileStream; }
|
||||||
|
|
||||||
void ClearCommentStream();
|
|
||||||
cmsys_ios::stringstream& GetCommentStream() const
|
|
||||||
{ return *this->CommentStream; }
|
|
||||||
|
|
||||||
|
|
||||||
void AddCXXCompileCommand(const std::string &commandLine,
|
void AddCXXCompileCommand(const std::string &commandLine,
|
||||||
const std::string &sourceFile);
|
const std::string &sourceFile);
|
||||||
|
|
||||||
|
@ -357,8 +352,6 @@ private:
|
||||||
|
|
||||||
static bool UsingMinGW;
|
static bool UsingMinGW;
|
||||||
|
|
||||||
cmsys_ios::stringstream* CommentStream;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // ! cmGlobalNinjaGenerator_h
|
#endif // ! cmGlobalNinjaGenerator_h
|
||||||
|
|
Loading…
Reference in New Issue