From: Jeremy Thomas Date: Mon, 13 Mar 2017 15:34:22 +0000 (+0000) Subject: Remove unused functions X-Git-Tag: 0.4.0~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f725e9b3a039ad49f34144d0355ba83a78244e1b;p=thirdparty%2Fbulma.git Remove unused functions --- diff --git a/docs/documentation/overview/functions.html b/docs/documentation/overview/functions.html index 107b799c7..43a3eef98 100644 --- a/docs/documentation/overview/functions.html +++ b/docs/documentation/overview/functions.html @@ -19,8 +19,6 @@ doc-subtab: functions
  • powerNumber($number, $exp): calculates the value of a number exposed to another one. Returns a number.
  • colorLuminance($color): defines if a color is dark or light. Return a decimal number between 0 and 1 where <= 0.5 is dark and > 0.5 is light.
  • findColorInvert($color): returns either 70% transparent black or 100% opaque white depending on the luminance of the color.
  • -
  • removeUnit($number): removes the unit of a Sass number. So "10px" becomes "10" and "3.5rem" returns "3.5". Used for string concatenation.
  • -
  • roundToEvenNumber($number): rounds a number to the closest but lower even one. So 23 becomes 22, and 7.5 returns 6.
  • diff --git a/sass/utilities/functions.sass b/sass/utilities/functions.sass index 561af8896..e38d1727c 100644 --- a/sass/utilities/functions.sass +++ b/sass/utilities/functions.sass @@ -26,11 +26,3 @@ @return rgba(#000, 0.7) @else @return #fff - -@function removeUnit($number) - @if type-of($number) == 'number' and not unitless($number) - @return $number / ($number * 0 + 1) - @return $number - -@function roundToEvenNumber($number) - @return floor($number / 2) * 2