From 550e08b012a67a20d4c71cb9e0b3aafadd265012 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sat, 23 May 2015 14:44:14 +0200 Subject: GHS: Remove unnecessary condition. --- Source/cmLocalGhsMultiGenerator.cxx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Source/cmLocalGhsMultiGenerator.cxx b/Source/cmLocalGhsMultiGenerator.cxx index a537265..9705803 100644 --- a/Source/cmLocalGhsMultiGenerator.cxx +++ b/Source/cmLocalGhsMultiGenerator.cxx @@ -27,13 +27,11 @@ cmLocalGhsMultiGenerator::~cmLocalGhsMultiGenerator() {} void cmLocalGhsMultiGenerator::Generate() { cmGeneratorTargetsType tgts = this->GetMakefile()->GetGeneratorTargets(); - if (!tgts.empty()) + + for (cmGeneratorTargetsType::iterator l = tgts.begin(); l != tgts.end(); + ++l) { - for (cmGeneratorTargetsType::iterator l = tgts.begin(); l != tgts.end(); - ++l) - { - cmGhsMultiTargetGenerator tg(l->second->Target); - tg.Generate(); - } + cmGhsMultiTargetGenerator tg(l->second->Target); + tg.Generate(); } } -- cgit v0.12