Skip to content

Commit 92036d1

Browse files
Remove commented out code
1 parent f4142be commit 92036d1

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

adafruit_simplemath.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,6 @@ def map_range(
5454
:return: Returns value mapped to new range.
5555
:rtype: float
5656
"""
57-
# in_range = in_max - in_min
58-
# in_delta = x - in_min
59-
# if in_range != 0:
60-
# mapped = in_delta / in_range
61-
# elif in_delta != 0:
62-
# mapped = in_delta
63-
# else:
64-
# mapped = 0.5
65-
# mapped *= out_max - out_min
66-
# mapped += out_min
6757

6858
mapped = unconstrained_map_range(x, in_min, in_max, out_min, out_max)
6959

0 commit comments

Comments
 (0)