diff --git a/devtools/shared/css/color.js b/devtools/shared/css/color.js index 77a0045cc1761..49248f3288340 100644 --- a/devtools/shared/css/color.js +++ b/devtools/shared/css/color.js @@ -821,23 +821,6 @@ function parseHue(lexer, colorArray) { return true; } -/** - * A helper function to examine a token and ensure it is a comma. - * Then fetch and return the next token. Returns null if the - * token was not a comma, or at EOF. - * - * @param {CSSLexer} lexer The lexer - * @param {CSSToken} token A token to be examined - * @return {CSSToken} The next non-whitespace, non-comment token; or - * null if token was not a comma, or at EOF. - */ -function requireComma(lexer, token) { - if (!token || token.tokenType !== "symbol" || token.text !== ",") { - return null; - } - return getToken(lexer); -} - /** * A helper function to parse the color components of hsl()/hsla() function. * hsl() and hsla() are now aliases.