aboutsummaryrefslogtreecommitdiff
path: root/org.jacoco.report/src
diff options
context:
space:
mode:
authorMarc R. Hoffmann <hoffmann@mountainminds.com>2011-01-16 15:03:23 +0000
committerMarc R. Hoffmann <hoffmann@mountainminds.com>2011-01-16 15:03:23 +0000
commit357ded20ef45a0d7c7661e4dfa23f9886f9fe58d (patch)
tree5ab339ef3c029938fb8b2c1ad4811734b214bf67 /org.jacoco.report/src
parent111902e66c6cadec3b81e57b012ee548b4bd7b01 (diff)
downloadjacoco-357ded20ef45a0d7c7661e4dfa23f9886f9fe58d.tar.gz
Remove unnecessary code.
Diffstat (limited to 'org.jacoco.report/src')
-rw-r--r--org.jacoco.report/src/org/jacoco/report/internal/html/table/Table.java13
1 files changed, 3 insertions, 10 deletions
diff --git a/org.jacoco.report/src/org/jacoco/report/internal/html/table/Table.java b/org.jacoco.report/src/org/jacoco/report/internal/html/table/Table.java
index 56f7ff8c..2d3ba12f 100644
--- a/org.jacoco.report/src/org/jacoco/report/internal/html/table/Table.java
+++ b/org.jacoco.report/src/org/jacoco/report/internal/html/table/Table.java
@@ -165,14 +165,10 @@ public class Table {
final ICoverageNode total) throws IOException {
visible = renderer.init(items, total);
if (visible) {
- if (index != null) {
- index.init(items);
- }
+ index.init(items);
final HTMLElement td = tr.td(headerStyle);
td.attr("id", String.valueOf(idprefix));
- if (index != null) {
- td.attr("onclick", "toggleSort(this)");
- }
+ td.attr("onclick", "toggleSort(this)");
td.text(header);
}
}
@@ -190,10 +186,7 @@ public class Table {
throws IOException {
if (visible) {
final HTMLElement td = tr.td(style);
- if (index != null) {
- td.attr("id",
- idprefix + String.valueOf(index.getPosition(idx)));
- }
+ td.attr("id", idprefix + String.valueOf(index.getPosition(idx)));
renderer.item(td, item, resources, base);
}
}