summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-08-04 02:52:16 -0400
committerAlexander Kurtakov2018-08-04 02:52:16 -0400
commit7c3eb386577f45d62416dbc3509a2c6ff8082f9d (patch)
tree65c14740940a4bdeaf778eb760e81fc4aabd7eab
parentfe1f173989deb9f16974d0c78d55f68c04a07462 (diff)
downloadeclipse.platform.text-7c3eb386577f45d62416dbc3509a2c6ff8082f9d.tar.gz
eclipse.platform.text-7c3eb386577f45d62416dbc3509a2c6ff8082f9d.tar.xz
eclipse.platform.text-7c3eb386577f45d62416dbc3509a2c6ff8082f9d.zip
should use IndentFoldingStrategy Remove useless variables that just generate compile warnings. Change-Id: I98d2c0e112e4cddc4ccbc649d09b7fdf55631669 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/folding/IndentFoldingStrategy.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/folding/IndentFoldingStrategy.java b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/folding/IndentFoldingStrategy.java
index 1fa316121..47b65bb90 100644
--- a/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/folding/IndentFoldingStrategy.java
+++ b/org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/folding/IndentFoldingStrategy.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2017 IBM Corporation and others.
+ * Copyright (c) 2009, 2018 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
@@ -175,8 +175,6 @@ public class IndentFoldingStrategy implements IReconcilingStrategy, IReconciling
List<FoldingAnnotation> deletions = new ArrayList<FoldingAnnotation>();
List<FoldingAnnotation> existing = new ArrayList<FoldingAnnotation>();
Map<Annotation, Position> additions = new HashMap<Annotation, Position>();
- boolean isInsert = dirtyRegion.getType().equals(DirtyRegion.INSERT);
- boolean isRemove = dirtyRegion.getType().equals(DirtyRegion.REMOVE);
// find and mark all folding annotations with length 0 for deletion
markInvalidAnnotationsForDeletion(dirtyRegion, deletions, existing);