Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2010-10-25 12:22:03 +0000
committerDani Megert2010-10-25 12:22:03 +0000
commitd0d05499b2c092a5446047b29217a173c890cd9f (patch)
tree6e683f05e52a399c3ee3462aec69e4708b278d8d /org.eclipse.search
parent3fb1c7f195231f23f4e014cfc31b4e14b2474614 (diff)
downloadeclipse.platform.text-d0d05499b2c092a5446047b29217a173c890cd9f.tar.gz
eclipse.platform.text-d0d05499b2c092a5446047b29217a173c890cd9f.tar.xz
eclipse.platform.text-d0d05499b2c092a5446047b29217a173c890cd9f.zip
Removed unused variables.v20101025-1300
Diffstat (limited to 'org.eclipse.search')
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/ui/RemovePotentialMatchesAction.java6
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/ui/RemoveResultAction.java4
2 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/ui/RemovePotentialMatchesAction.java b/org.eclipse.search/search/org/eclipse/search/internal/ui/RemovePotentialMatchesAction.java
index d842d739ad9..27369e53569 100644
--- a/org.eclipse.search/search/org/eclipse/search/internal/ui/RemovePotentialMatchesAction.java
+++ b/org.eclipse.search/search/org/eclipse/search/internal/ui/RemovePotentialMatchesAction.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2008 IBM Corporation and others.
+ * Copyright (c) 2000, 2010 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
@@ -78,7 +78,7 @@ class RemovePotentialMatchesAction extends Action {
ArrayList markers= new ArrayList(size * 3);
Iterator iter= selection.iterator();
- for(int i= 0; iter.hasNext(); i++) {
+ while (iter.hasNext()) {
SearchResultViewEntry entry= (SearchResultViewEntry)iter.next();
Iterator entryIter= entry.getMarkers().iterator();
while (entryIter.hasNext()) {
@@ -103,7 +103,7 @@ class RemovePotentialMatchesAction extends Action {
int markerCount= 0;
Iterator iter= selection.iterator();
- for(int i= 0; iter.hasNext(); i++) {
+ while (iter.hasNext()) {
SearchResultViewEntry entry= (SearchResultViewEntry)iter.next();
Iterator entryIter= entry.getMarkers().iterator();
while (entryIter.hasNext()) {
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/ui/RemoveResultAction.java b/org.eclipse.search/search/org/eclipse/search/internal/ui/RemoveResultAction.java
index 9113175b7ef..ac2dad2e1b3 100644
--- a/org.eclipse.search/search/org/eclipse/search/internal/ui/RemoveResultAction.java
+++ b/org.eclipse.search/search/org/eclipse/search/internal/ui/RemoveResultAction.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2008 IBM Corporation and others.
+ * Copyright (c) 2000, 2010 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
@@ -73,7 +73,7 @@ class RemoveResultAction extends Action {
ArrayList markers= new ArrayList(size * 3);
int markerCount= 0;
Iterator iter= selection.iterator();
- for(int i= 0; iter.hasNext(); i++) {
+ while (iter.hasNext()) {
SearchResultViewEntry entry= (SearchResultViewEntry)iter.next();
markerCount += entry.getMatchCount();
markers.addAll(entry.getMarkers());

Back to the top