diff options
author | Alexander Kurtakov | 2016-07-07 06:45:55 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2016-07-07 06:45:55 +0000 |
commit | b32a6750415c4003f9e702f7a1a7b002a6958afb (patch) | |
tree | 2abcb52fabb11636527a89d9d805fc5735099799 /org.eclipse.search | |
parent | 9982bbf2a7bc3f15d867b7968c00784ef6f56820 (diff) | |
download | eclipse.platform.text-b32a6750415c4003f9e702f7a1a7b002a6958afb.tar.gz eclipse.platform.text-b32a6750415c4003f9e702f7a1a7b002a6958afb.tar.xz eclipse.platform.text-b32a6750415c4003f9e702f7a1a7b002a6958afb.zip |
Bug 497051 - Improve text search when multiple files have same location
Removed forgotten local var.
Change-Id: If2f01c719e41a520838b7d5034a746665b869efb
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'org.eclipse.search')
-rw-r--r-- | org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java b/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java index 63a924f6520..22e8862c80e 100644 --- a/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java +++ b/org.eclipse.search/search/org/eclipse/search/internal/core/text/TextSearchVisitor.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2015 IBM Corporation and others. + * Copyright (c) 2000, 2016 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -217,7 +217,6 @@ public class TextSearchVisitor { } else if (previousLocationFromFile != null && previousLocationFromFile.equals(file.getLocation()) && !occurencesForPreviousLocation.isEmpty()) { // reuse previous result ReusableMatchAccess matchAccess = new ReusableMatchAccess(); - int i = 0; for (TextSearchMatchAccess occurence : occurencesForPreviousLocation) { matchAccess.initialize(file, occurence.getMatchOffset(), occurence.getMatchLength(), charsequenceForPreviousLocation); boolean goOn = fCollector.acceptPatternMatch(matchAccess); |