From 071edcdc2dbd13c08ab2eb2c0815238eb8a7e552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Poupard?= Date: Tue, 27 Jul 2021 06:48:08 +0200 Subject: [PATCH] More concise improvements for `add()` and `subtract()` (#34432) --- scss/_functions.scss | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/scss/_functions.scss b/scss/_functions.scss index 8abc31164e98..20dae44c84b4 100644 --- a/scss/_functions.scss +++ b/scss/_functions.scss @@ -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); } @@ -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(")"); }