[Tree Extension] Removes unused variables from DATreeDatasourceService
authorAugusto Mauch <augusto.mauch@openbravo.com>
Thu, 20 Feb 2014 13:29:39 +0100
changeset 22523 c2768255cecf
parent 22522 09b9a2ed1d53
child 22524 0a28ff88c9a2
[Tree Extension] Removes unused variables from DATreeDatasourceService
modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ADTreeDatasourceService.java
--- a/modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ADTreeDatasourceService.java	Thu Feb 20 13:22:06 2014 +0100
+++ b/modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ADTreeDatasourceService.java	Thu Feb 20 13:29:39 2014 +0100
@@ -198,13 +198,9 @@
     String tabId = parameters.get("tabId");
     String treeReferenceId = parameters.get("treeReferenceId");
     Tab tab = null;
-    Table table = null;
-    TableTree tableTree = null;
     JSONArray selectedProperties = null;
     if (tabId != null) {
       tab = OBDal.getInstance().get(Tab.class, tabId);
-      table = tab.getTable();
-      tableTree = tab.getTableTree();
       String selectedPropertiesStr = parameters.get("_selectedProperties");
       selectedProperties = new JSONArray(selectedPropertiesStr);
     } else if (treeReferenceId != null) {
@@ -214,8 +210,6 @@
       for (ReferencedTreeField treeField : treeReference.getADReferencedTreeFieldList()) {
         selectedProperties.put(treeField.getProperty());
       }
-      table = treeReference.getTable();
-      tableTree = treeReference.getTableTreeCategory();
     } else {
       logger
           .error("A request to the TreeDatasourceService must include the tabId or the treeReferenceId parameter");