]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Remove unused functions
authorJeremy Thomas <bbxdesign@gmail.com>
Mon, 13 Mar 2017 15:34:22 +0000 (15:34 +0000)
committerJeremy Thomas <bbxdesign@gmail.com>
Wed, 15 Mar 2017 22:14:42 +0000 (22:14 +0000)
docs/documentation/overview/functions.html
sass/utilities/functions.sass

index 107b799c7bd43eb903780fbb91e7ce79557aa1b8..43a3eef98fd1653c5ad0aed9a984ffd38acb7e45 100644 (file)
@@ -19,8 +19,6 @@ doc-subtab: functions
         <li><code>powerNumber($number, $exp)</code>: calculates the value of a number exposed to another one. Returns a number.</li>
         <li><code>colorLuminance($color)</code>: 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.</li>
         <li><code>findColorInvert($color)</code>: returns either 70% transparent black or 100% opaque white depending on the luminance of the color.</li>
-        <li><code>removeUnit($number)</code>: removes the unit of a Sass number. So "10px" becomes "10" and "3.5rem" returns "3.5". Used for string concatenation.</li>
-        <li><code>roundToEvenNumber($number)</code>: rounds a number to the closest but lower even one. So 23 becomes 22, and 7.5 returns 6.</li>
       </ul>
     </div>
   </div>
index 561af8896eed86c49519f6c56229ffff5389d85a..e38d1727cd83a65eaa5624cb0cf1081442504afc 100644 (file)
     @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