Skip to content

Commit

Permalink
Merge pull request #30 from HugoGiraudel/patch-16
Browse files Browse the repository at this point in the history
[RFR] Removed obsolete turn-to-deg function
  • Loading branch information
gakimball committed Oct 13, 2015
2 parents 6bf1816 + 4cd6722 commit 47afa9d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/effects/_spin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
$direction: cw,
$amount: 1turn
) {
$amount: turn-to-deg($amount);
$start: 0;
$end: 0;

Expand Down
8 changes: 0 additions & 8 deletions src/util/_unit.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,3 @@
@function strip-unit($num) {
@return $num / ($num * 0 + 1);
}

/// Converts a turn unit to the equivalent unit in degrees. 1turn is equal to 360 degrees. Not all browsers support turn, so this function allows us to use turns while outputting a value that all browsers understand.
/// @param {Number} $value - Turn value to convert.
/// @return {Number} The same value, but in degrees.
/// @access private
@function turn-to-deg($value) {
@return strip-unit($value) * 360deg;
}

0 comments on commit 47afa9d

Please sign in to comment.