Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Hungershausen2018-06-09 09:52:33 -0400
committerLars Vogel2018-06-11 06:17:17 -0400
commit44753c53be84545a2e1206412bb54dd2f2638075 (patch)
tree8dd3c2d003fd38db548ab87e16343bf84b69dfa1 /org.eclipse.text
parent1369ed9663d0457f2d578aa282f8d313bca2f7e4 (diff)
downloadeclipse.platform.text-44753c53be84545a2e1206412bb54dd2f2638075.tar.gz
eclipse.platform.text-44753c53be84545a2e1206412bb54dd2f2638075.tar.xz
eclipse.platform.text-44753c53be84545a2e1206412bb54dd2f2638075.zip
[Sonar] Removes dead stored variables
see https://sonar.eclipse.org/drilldown/issues/33533?rids%5B%5D=33542&rule=findbugs%3ADLS_DEAD_LOCAL_STORE&rule_sev=CRITICAL&severity=CRITICAL Change-Id: I81091332e090cd8baa36204d25256d6df77bdf42 Signed-off-by: Jonas Hungershausen <jonas.hungershausen@vogella.com>
Diffstat (limited to 'org.eclipse.text')
-rw-r--r--org.eclipse.text/src/org/eclipse/jface/text/DefaultPositionUpdater.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/org.eclipse.text/src/org/eclipse/jface/text/DefaultPositionUpdater.java b/org.eclipse.text/src/org/eclipse/jface/text/DefaultPositionUpdater.java
index ef03ed55c..a437827eb 100644
--- a/org.eclipse.text/src/org/eclipse/jface/text/DefaultPositionUpdater.java
+++ b/org.eclipse.text/src/org/eclipse/jface/text/DefaultPositionUpdater.java
@@ -98,8 +98,6 @@ public class DefaultPositionUpdater implements IPositionUpdater {
myEnd= Math.max(myStart, myEnd);
int yoursStart= fOffset;
- int yoursEnd= fOffset + fReplaceLength -1;
- yoursEnd= Math.max(yoursStart, yoursEnd);
if (myEnd < yoursStart)
return;

Back to the top