Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatja Zavozina2018-09-12 13:07:13 -0400
committerMatthias Becker2018-09-12 13:09:27 -0400
commit94abb737d3b1cbf591b7f53259f381ec47101447 (patch)
tree3a86f3990872c7651b8c382347265e5f835ce1df
parentcdc4629eece278d017cd26377de5cfe4f5fb0f81 (diff)
downloadeclipse.platform.text-94abb737d3b1cbf591b7f53259f381ec47101447.tar.gz
eclipse.platform.text-94abb737d3b1cbf591b7f53259f381ec47101447.tar.xz
eclipse.platform.text-94abb737d3b1cbf591b7f53259f381ec47101447.zip
Fixes: Dead store to local variable in IndentFoldingStrategy.java
Change-Id: I70dbf2696e6e790e39bb4a46b6941ea5ba8609a4 Signed-off-by: Katja Zavozina <ekaterina.zavozina@sap.com>
-rw-r--r--org.eclipse.ui.genericeditor/src/org/eclipse/ui/internal/genericeditor/folding/IndentFoldingStrategy.java10
1 files changed, 3 insertions, 7 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 02f6f02f1..7a05cb915 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,11 +1,11 @@
/*******************************************************************************
* Copyright (c) 2009, 2018 IBM Corporation and others.
- *
+ *
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
- * https://www.eclipse.org/legal/epl-2.0/
- *
+ * https://www.eclipse.org/legal/epl-2.0/
+ *
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
@@ -355,10 +355,6 @@ public class IndentFoldingStrategy implements IReconcilingStrategy, IReconciling
// be sure project has not been disabled
if (projectionAnnotationModel != null) {
// workaround for Platform Bug 299416
- int offset = dirtyRegion.getOffset();
- if (offset > 0) {
- offset--;
- }
annoIter = projectionAnnotationModel.getAnnotationIterator(0, document.getLength(), false, false);
}
return annoIter;

Back to the top