cmMakefile: Simplify GetCMakeInstance implementation.

No callers handle the possibility that it can return null, and that
is no longer possible anyway.
This commit is contained in:
Stephen Kelly 2015-05-03 11:05:27 +02:00
parent 6cd6d50871
commit efcca9353f

View File

@ -3692,13 +3692,9 @@ bool cmMakefile::GetIsSourceFileTryCompile() const
}
cmake *cmMakefile::GetCMakeInstance() const
{
if ( this->LocalGenerator && this->LocalGenerator->GetGlobalGenerator() )
{
return this->LocalGenerator->GetGlobalGenerator()->GetCMakeInstance();
}
return 0;
}
#ifdef CMAKE_BUILD_WITH_CMAKE
cmVariableWatch *cmMakefile::GetVariableWatch() const