Skip to content

Commit

Permalink
Bug 1302787 - remove the now-unused requireComma() function in devtoo…
Browse files Browse the repository at this point in the history
…l colorUtils. r=ttromey

MozReview-Commit-ID: GuUWNZPcX7C
  • Loading branch information
JerryShih committed Oct 17, 2016
1 parent b84745f commit e38be92
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions devtools/shared/css/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e38be92

Please sign in to comment.