Remove unused functions

This commit is contained in:
Jeremy Thomas 2017-03-13 15:34:22 +00:00
parent 56606b4050
commit f725e9b3a0
2 changed files with 0 additions and 10 deletions

View 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>

View File

@ -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