mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
remove find Type - not used any more
This commit is contained in:
parent
c238862efe
commit
3d672802a3
1 changed files with 0 additions and 20 deletions
|
@ -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.
|
* Determines how much space the Dish takes up.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue