commit | 5e420bf78535c95edc95046ed9a9190629ca0389 | [log] [tgz] |
---|---|---|
author | Darin Wright <darin> | Mon Jan 26 15:48:50 2009 +0000 |
committer | Darin Wright <darin> | Mon Jan 26 15:48:50 2009 +0000 |
tree | 406e9e82abd81bb05b0bf79d7e77008deb64053c | |
parent | f0048215abea8d873842b184df30982ff55c31d1 [diff] |
dead code
diff --git a/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/AbstractAntUITest.java b/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/AbstractAntUITest.java index 6f1a46e..a13e024 100644 --- a/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/AbstractAntUITest.java +++ b/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/AbstractAntUITest.java
@@ -472,9 +472,8 @@ IDocumentPartitioner partitioner = document.getDocumentPartitioner(); if (partitioner != null) { ITypedRegion[] regions= partitioner.computePartitioning(offset, document.getLineInformationOfOffset(offset).getLength()); - - for (int i = 0; i < regions.length; i++) { - IOConsolePartition partition = (IOConsolePartition)regions[i]; + if (regions.length > 0) { + IOConsolePartition partition = (IOConsolePartition)regions[0]; return partition.getColor(); } }