C++: Remove unused loop

Change-Id: I107c09bce86219476fab034b133b54f83170c17f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
Orgad Shaneh
2014-05-19 18:21:45 +03:00
committed by Orgad Shaneh
parent 3070fdd4f1
commit 480e8134e9

View File

@@ -403,7 +403,8 @@ FullySpecifiedType UseMinimalNames::apply(const Name *name, Rewrite *rewrite) co
Control *control = rewrite->control;
const QList<LookupItem> results = context.lookup(name, scope);
foreach (const LookupItem &r, results) {
if (!results.isEmpty()) {
const LookupItem &r = results.first();
if (Symbol *d = r.declaration())
return control->namedType(LookupContext::minimalName(d, _target, control));