[PATCH] Minor cleanup

Wald Commits scm-commit at wald.intevation.org
Fri Jul 27 15:34:31 CEST 2018


# HG changeset patch
# User gernotbelger
# Date 1532698429 -7200
# Node ID 0452f1c1bad3130a86936ec140bc76d35935864c
# Parent  094ed9d1f2ad199c9e6f510606c1e25e5a4c9aad
Minor cleanup

diff -r 094ed9d1f2ad -r 0452f1c1bad3 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/TableDataPanel.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/TableDataPanel.java	Fri Jul 27 14:33:41 2018 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/TableDataPanel.java	Fri Jul 27 15:33:49 2018 +0200
@@ -105,14 +105,6 @@
         this.uuid = uuid;
     }
 
-    public Canvas createOld(final DataList dataList) {
-        return null;
-    }
-
-    protected Canvas createWidget(final DataList data) {
-        return null;
-    }
-
     /**
      * This method sets the data to a dynamic table.
      *
@@ -138,17 +130,16 @@
         }
         final Map<String, List<String[]>> tabData = getTabData(list);
         if (tabData.size() == 1) {
-            createTable(this.dataTable, tabData.get(tabData.keySet().iterator().next()), nf, 0);
+            createTable(this.dataTable, tabData.get(tabData.keySet().iterator().next()), nf);
 
         } else if (tabData.size() > 1) {
 
-            final int index = 0;
             for (final String key : tabData.keySet()) {
                 final List<String[]> items = tabData.get(key);
 
                 final ListGrid table = new ListGrid();
 
-                createTable(table, items, nf, index);
+                createTable(table, items, nf);
                 final Tab tab = new Tab();
                 tab.setTitle(key);
                 tab.setPane(table);
@@ -162,7 +153,7 @@
         }
     }
 
-    private void createTable(final ListGrid dataTableTab, final List<String[]> list, final NumberFormat nf, final int tabNumber) {
+    private void createTable(final ListGrid dataTableTab, final List<String[]> list, final NumberFormat nf) {
 
         final String[] header = list.get(0);
         final String[] displayField = new String[header.length];


More information about the Dive4Elements-commits mailing list