related to issue 39896: minor code cleanup
authorCarlos Aristu <carlos.aristu@openbravo.com>
Tue, 15 Jan 2019 17:24:40 +0100
changeset 35319 0520ead34ebb
parent 35318 41b709331d14
child 35320 3277f851fae8
related to issue 39896: minor code cleanup

Removed unused variables
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-characteristics.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-characteristics.js	Tue Jan 15 13:57:46 2019 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-characteristics.js	Tue Jan 15 17:24:40 2019 +0100
@@ -177,9 +177,7 @@
   getValue: function () {
     var selection = this.tree.getSelection(),
         result = {},
-        i, c, chars = {},
-        values = {},
-        completeParentNodes = [],
+        i, c, completeParentNodes = [],
         node, currentChar, grandParent;
 
     for (i = 0; i < selection.length; i++) {
@@ -267,12 +265,10 @@
      * based on the filter initial criteria
      */
     dataArrived = function () {
-      var internalValue, nodeList, i, j;
       this.Super('dataArrived', arguments);
       if (this.topElement && this.topElement.creator && this.topElement.creator.internalValue) {
         this.checkInitialNodes(this.topElement.creator.internalValue);
       }
-
     };
 
     /**
@@ -444,8 +440,7 @@
    * not usable in other views than Product
    */
   getCriterion: function () {
-    var c, characteristic, v, value, charCriteria, fieldName = this.getCriteriaFieldName(),
-        inValues;
+    var c, characteristic, v, value, charCriteria, inValues;
     if (!this.internalValue) {
       return;
     }