From 79f22e84089e3f7a29cfea3275af6fafc5d3c091 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 29 Jan 2018 10:20:47 -0500 Subject: Makefile,Ninja: De-duplicate ComputeObjectFilenames method Move the method implementation up to `cmLocalCommonGenerator` to avoid duplicating it in each generator. --- Source/cmLocalUnixMakefileGenerator3.cxx | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx') diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index ff3fcfd31f..12682a7685 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -150,20 +150,6 @@ void cmLocalUnixMakefileGenerator3::ComputeHomeRelativeOutputPath() } } -void cmLocalUnixMakefileGenerator3::ComputeObjectFilenames( - std::map& mapping, - cmGeneratorTarget const* gt) -{ - // Determine if these object files should use a custom extension - char const* custom_ext = gt->GetCustomObjectExtension(); - for (auto& si : mapping) { - cmSourceFile const* sf = si.first; - bool keptSourceExtension; - si.second = this->GetObjectFileNameWithoutTarget( - *sf, gt->ObjectDirectory, &keptSourceExtension, custom_ext); - } -} - void cmLocalUnixMakefileGenerator3::GetLocalObjectFiles( std::map& localObjectFiles) { -- cgit v1.2.1