Skip to content

Commit

Permalink
Unused method removed
Browse files Browse the repository at this point in the history
  • Loading branch information
juliovedovatto committed Nov 25, 2019
1 parent ca24d60 commit eb8adbe
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lib/resolve-value.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ function toString(value) {
return String(value);
}

function filterDistinct(value, index, self) {
return self.indexOf(value) === index;
}

// Pass in a value string to parse/resolve and a map of available values
// and we can figure out the final value
//
Expand All @@ -32,7 +28,7 @@ var resolveValue = function(decl, map, /*optional*/ignorePseudoScope, /*internal
var matchingVarDecl = undefined;
var resultantValue = toString(decl.value);
var warnings = [];

// Match all variables first so we can later on if there are circular dependencies
var variablesUsedInValueMap = {}
// Create a temporary variable, storing resultantValue variable value
Expand Down Expand Up @@ -61,7 +57,7 @@ var resolveValue = function(decl, map, /*optional*/ignorePseudoScope, /*internal

// Resolve any var(...) substitutons
var isResultantValueUndefined = false;

// var() = var( <custom-property-name> [, <any-value> ]? )
// matches `name[, fallback]`, captures "name" and "fallback"
// See: http://dev.w3.org/csswg/css-variables/#funcdef-var
Expand All @@ -75,7 +71,7 @@ var resolveValue = function(decl, map, /*optional*/ignorePseudoScope, /*internal
// Get variable name and fallback, filtering empty items
var variableName = variableFallbackSplitPieces[0].trim();
var fallback = variableFallbackSplitPieces.length > 1 ? variableFallbackSplitPieces.slice(1).join(',').trim() : undefined;

(map[variableName] || []).forEach(function(varDeclMapItem) {
// Make sure the variable declaration came from the right spot
// And if the current matching variable is already important, a new one to replace it has to be important
Expand Down

0 comments on commit eb8adbe

Please sign in to comment.