diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-06-06 09:41:30 +0200 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-06-07 09:29:31 +0200 |
commit | 5181fae264444ad7736614ceb1e78c51def2b97c (patch) | |
tree | 6c0577c3bc103de8eef07431260fcb5d1f495d43 /Source/cmCPluginAPI.cxx | |
parent | 3ac4b90bfdcca97f1f63056c97afee38cf66ea12 (diff) | |
download | cmake-5181fae264444ad7736614ceb1e78c51def2b97c.tar.gz |
cmPropertyMap: Remove chaining logic.
The chaining logic doesn't belong to the container, and the
CMakeInstance pointer doesn't need to be in cmPropertyMap.
Size goes from 56 to 48 bytes with GNU libstdc++-5.1.
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r-- | Source/cmCPluginAPI.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx index bd8c10cc5c..0d24ed5ed6 100644 --- a/Source/cmCPluginAPI.cxx +++ b/Source/cmCPluginAPI.cxx @@ -526,11 +526,9 @@ void * CCONV cmCreateSourceFile(void) return (void*)new cmCPluginAPISourceFile; } -void * CCONV cmCreateNewSourceFile(void *arg) +void * CCONV cmCreateNewSourceFile(void *) { - cmMakefile *mf = static_cast<cmMakefile *>(arg); cmCPluginAPISourceFile *sf = new cmCPluginAPISourceFile; - sf->Properties.SetCMakeInstance(mf->GetCMakeInstance()); return (void*)sf; } @@ -630,11 +628,7 @@ const char * CCONV cmSourceFileGetProperty(void *arg,const char *prop) { return sf->FullPath.c_str(); } - bool chain = false; - // Ignore chain because old code will not expect it and it is a - // pain to implement here anyway. - return sf->Properties.GetPropertyValue(prop, cmProperty::SOURCE_FILE, - chain); + return sf->Properties.GetPropertyValue(prop); } } |