Skip to main content
aboutsummaryrefslogtreecommitdiffstats
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.text/src/org
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.text/src/org')
-rwxr-xr-xorg.eclipse.text/src/org/eclipse/jface/text/TreeLineTracker.java10
1 files changed, 1 insertions, 9 deletions
diff --git a/org.eclipse.text/src/org/eclipse/jface/text/TreeLineTracker.java b/org.eclipse.text/src/org/eclipse/jface/text/TreeLineTracker.java
index 03edfbe4378..e25c1e00164 100755
--- a/org.eclipse.text/src/org/eclipse/jface/text/TreeLineTracker.java
+++ b/org.eclipse.text/src/org/eclipse/jface/text/TreeLineTracker.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2008 IBM Corporation and others.
+ * Copyright (c) 2005, 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
@@ -226,8 +226,6 @@ abstract class TreeLineTracker implements ILineTracker {
*/
int remaining= offset;
Node node= fRoot;
- int line= 0;
-
while (true) {
if (node == null)
fail(offset);
@@ -236,13 +234,11 @@ abstract class TreeLineTracker implements ILineTracker {
node= node.left;
} else {
remaining -= node.offset;
- line+= node.line;
if (remaining < node.length
|| remaining == node.length && node.right == null) { // last line
break;
}
remaining -= node.length;
- line ++;
node= node.right;
}
}
@@ -298,7 +294,6 @@ abstract class TreeLineTracker implements ILineTracker {
* Works for any binary search tree.
*/
int remaining= line;
- int offset= 0;
Node node= fRoot;
while (true) {
@@ -311,7 +306,6 @@ abstract class TreeLineTracker implements ILineTracker {
node= node.left;
} else {
remaining -= node.line + 1;
- offset += node.offset + node.length;
node= node.right;
}
}
@@ -1264,7 +1258,6 @@ abstract class TreeLineTracker implements ILineTracker {
List roots= new LinkedList();
roots.add(fRoot);
StringBuffer buf= new StringBuffer((width + 1) * depth);
- int nodes= 1;
int indents= leaves;
char[] space= new char[leaves * WIDTH / 2];
Arrays.fill(space, ' ');
@@ -1301,7 +1294,6 @@ abstract class TreeLineTracker implements ILineTracker {
}
buf.append('\n');
- nodes *= 2;
}
return buf.toString();

Back to the top