Skip to content

Commit

Permalink
More concise improvements for add() and subtract() (#34432)
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd authored and XhmikosR committed Jul 27, 2021
1 parent b010a6f commit 071edcd
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions scss/_functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,6 @@
@return $value1 + $value2;
}

@if type-of($value1) != number {
$value1: unquote("(") + $value1 + unquote(")");
}

@if type-of($value2) != number {
$value2: unquote("(") + $value2 + unquote(")");
}

@return if($return-calc == true, calc(#{$value1} + #{$value2}), $value1 + unquote(" + ") + $value2);
}

Expand All @@ -148,10 +140,6 @@
@return $value1 - $value2;
}

@if type-of($value1) != number {
$value1: unquote("(") + $value1 + unquote(")");
}

@if type-of($value2) != number {
$value2: unquote("(") + $value2 + unquote(")");
}
Expand Down

0 comments on commit 071edcd

Please sign in to comment.