Ver Fonte

remove find Type - not used any more

d98762625 há 7 anos atrás
pai
commit
3d672802a3
1 ficheiros alterados com 0 adições e 20 exclusões
  1. 0 20
      src/core/Dish.mjs

+ 0 - 20
src/core/Dish.mjs

@@ -271,26 +271,6 @@ class Dish {
         }
     }
 
-    /**
-     *
-     */
-    findType() {
-        if (!this.value) {
-            throw "Dish has no value";
-        }
-
-        const types = [Dish.BYTE_ARRAY, Dish.STRING, Dish.HTML, Dish.NUMBER, Dish.ARRAY_BUFFER, Dish.BIG_NUMBER, Dish.LIST_FILE];
-
-        types.find((type) => {
-            this.type = type;
-            if (this.valid()) {
-                return true;
-            }
-        });
-
-        return this.type;
-    }
-
 
     /**
      * Determines how much space the Dish takes up.