diff --git a/core/misc/states.es6.js b/core/misc/states.es6.js index ff958b7568..2274874f90 100644 --- a/core/misc/states.es6.js +++ b/core/misc/states.es6.js @@ -648,30 +648,6 @@ * implement any logic that is particular to states. */ - /** - * Bitwise AND with a third undefined state. - * - * @function Drupal.states~ternary - * - * @param {*} a - * Value a. - * @param {*} b - * Value b - * - * @return {bool} - * The result. - */ - function ternary(a, b) { - if (typeof a === 'undefined') { - return b; - } - else if (typeof b === 'undefined') { - return a; - } - - return a && b; - } - /** * Inverts a (if it's not undefined) when invertState is true. * diff --git a/core/misc/states.js b/core/misc/states.js index 07a5fd67ed..2d1d84df31 100644 --- a/core/misc/states.js +++ b/core/misc/states.js @@ -346,16 +346,6 @@ } }); - function ternary(a, b) { - if (typeof a === 'undefined') { - return b; - } else if (typeof b === 'undefined') { - return a; - } - - return a && b; - } - function invert(a, invertState) { return invertState && typeof a !== 'undefined' ? !a : a; }