From 3d672802a3f5bc225bf286387b41514acdb60300 Mon Sep 17 00:00:00 2001 From: d98762625 Date: Fri, 27 Apr 2018 16:47:52 +0100 Subject: [PATCH] remove find Type - not used any more --- src/core/Dish.mjs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/core/Dish.mjs b/src/core/Dish.mjs index 39a8a7f5..243a7986 100755 --- a/src/core/Dish.mjs +++ b/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.