Skip to content

Commit

Permalink
remove redundant branches (for removed node types)
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Oct 6, 2016
1 parent 110d4a2 commit 53e2fef
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions lib/utils/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ function translate(node) {
? node.property + ':' + translate(node.value) + '!important'
: node.property + ':' + translate(node.value);

case 'Property':
return node.name;

case 'Value':
return each(node.sequence);

Expand Down Expand Up @@ -207,9 +204,6 @@ function translate(node) {
case 'Raw':
return node.value;

case 'Unknown':
return node.value;

case 'Percentage':
return node.value + '%';

Expand Down
6 changes: 0 additions & 6 deletions lib/utils/translateWithSourceMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,6 @@ function translate(node) {
);
}

case 'Property':
return node.name;

case 'Value':
return each(node.sequence);

Expand Down Expand Up @@ -281,9 +278,6 @@ function translate(node) {
case 'Raw':
return node.value;

case 'Unknown':
return node.value;

case 'Percentage':
return node.value + '%';

Expand Down

0 comments on commit 53e2fef

Please sign in to comment.