summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-18 12:50:31 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-04-18 13:29:17 (GMT)
commit5bb4248a807029053156dbf4a3cdba4427766306 (patch)
tree90439f898a63d61351f1fb5b72346382f272ce82 /Source/cmMakefile.cxx
parentfc7ab8874b0e5c2c010fb73718ae8702b8853ca0 (diff)
downloadCMake-5bb4248a807029053156dbf4a3cdba4427766306.zip
CMake-5bb4248a807029053156dbf4a3cdba4427766306.tar.gz
CMake-5bb4248a807029053156dbf4a3cdba4427766306.tar.bz2
cmMakefile: Remove fullPath parameter from ReadListFile.
There is no reason for this to be a responsibility of ReadListFile. Additionally, the only user of it already computes it itself.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx9
1 files changed, 0 insertions, 9 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 205508b..8bc4ac8 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -527,7 +527,6 @@ void cmMakefile::IncludeScope::EnforceCMP0011()
//
bool cmMakefile::ReadListFile(const char* filename_in,
const char *external_in,
- std::string* fullPath,
bool noPolicyScope)
{
std::string currentParentFile
@@ -598,19 +597,11 @@ bool cmMakefile::ReadListFile(const char* filename_in,
// push the listfile onto the stack
this->ListFileStack.push_back(filenametoread);
- if(fullPath!=0)
- {
- *fullPath=filenametoread;
- }
cmListFile cacheFile;
if( !cacheFile.ParseFile(filenametoread, requireProjectCommand, this) )
{
// pop the listfile off the stack
this->ListFileStack.pop_back();
- if(fullPath!=0)
- {
- *fullPath = "";
- }
this->AddDefinition("CMAKE_PARENT_LIST_FILE", currentParentFile.c_str());
this->MarkVariableAsUsed("CMAKE_PARENT_LIST_FILE");
this->AddDefinition("CMAKE_CURRENT_LIST_FILE", currentFile.c_str());