summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Hungershausen2018-06-09 09:52:33 -0400
committerLars Vogel2018-06-11 06:17:17 -0400
commit44753c53be84545a2e1206412bb54dd2f2638075 (patch)
tree8dd3c2d003fd38db548ab87e16343bf84b69dfa1
parent1369ed9663d0457f2d578aa282f8d313bca2f7e4 (diff)
downloadeclipse.platform.text-44753c53be84545a2e1206412bb54dd2f2638075.zip
eclipse.platform.text-44753c53be84545a2e1206412bb54dd2f2638075.tar.gz
eclipse.platform.text-44753c53be84545a2e1206412bb54dd2f2638075.tar.xz
[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>
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/HTMLTextPresenter.java2
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/PaintManager.java2
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java2
-rw-r--r--org.eclipse.text/src/org/eclipse/jface/text/DefaultPositionUpdater.java2
4 files changed, 0 insertions, 8 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/HTMLTextPresenter.java b/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/HTMLTextPresenter.java
index fbb51c8..1976bbd 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/HTMLTextPresenter.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/internal/text/html/HTMLTextPresenter.java
@@ -54,8 +54,6 @@ public class HTMLTextPresenter implements DefaultInformationControl.IInformation
protected void adaptTextPresentation(TextPresentation presentation, int offset, int insertLength) {
int yoursStart= offset;
- int yoursEnd= offset + insertLength -1;
- yoursEnd= Math.max(yoursStart, yoursEnd);
Iterator<StyleRange> e= presentation.getAllStyleRangeIterator();
while (e.hasNext()) {
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/PaintManager.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/PaintManager.java
index 03da4d5..43f3350 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/PaintManager.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/PaintManager.java
@@ -66,8 +66,6 @@ public final class PaintManager implements KeyListener, MouseListener, ISelectio
myEnd= Math.max(myStart, myEnd);
int yoursStart= fOffset;
- int yoursEnd= fOffset + fReplaceLength;// - 1;
- yoursEnd= Math.max(yoursStart, yoursEnd);
if (myEnd < yoursStart)
return;
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java
index e34be73..feb511c 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java
@@ -361,8 +361,6 @@ public class TextViewer extends Viewer implements
myEnd= Math.max(myStart, myEnd);
int yoursStart= fOffset;
- int yoursEnd= fOffset + fReplaceLength -1;
- yoursEnd= Math.max(yoursStart, yoursEnd);
if (myEnd < yoursStart)
return;
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 ef03ed5..a437827 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;