Remove unused es_bool file.

This commit is contained in:
CJ Cenizal 2016-11-04 16:15:25 -07:00
parent aa69744f67
commit 72c4179cea
3 changed files with 0 additions and 40 deletions

View file

@ -4,7 +4,6 @@
*/
import _ from 'lodash';
import esBool from './es_bool';
import isEsCompatibleWithKibana from './is_es_compatible_with_kibana';
/**

View file

@ -1,17 +0,0 @@
const map = {
'false': false,
'off': false,
'no': false,
'0': false,
'true': true,
'on': true,
'yes': true,
'1': true
};
module.exports = function (str) {
const bool = map[String(str)];
if (typeof bool !== 'boolean') {
throw new TypeError('"' + str + '" does not map to an esBool');
}
return bool;
};

View file

@ -1,22 +0,0 @@
define(function () {
let map = {
'false': false,
'off': false,
'no': false,
'0': false,
'true': true,
'on': true,
'yes': true,
'1': true
};
return function (str) {
let bool = map[String(str)];
if (typeof bool !== 'boolean') {
throw new TypeError('"' + str + '" does not map to an esBool');
}
return bool;
};
});