From f2a3ff9a9d0f940ce68f937df41c1a55cd39c37f Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Thu, 16 May 2013 18:09:11 -0700 Subject: [PATCH] Code streamlining. --- .../cdt/internal/core/parser/scanner/LocationMap.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/LocationMap.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/LocationMap.java index 3c92cc5772f..948bdf5864d 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/LocationMap.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/LocationMap.java @@ -676,11 +676,7 @@ public class LocationMap implements ILocationResolver { } } contexts.addAll(ctx.getChildren()); - if (contexts.isEmpty()) { - ctx= null; - } else { - ctx= contexts.removeFirst(); - } + ctx= contexts.pollFirst(); } } if (ctx != null) {