Skip to content

Commit

Permalink
Remove dead function
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Mar 13, 2021
1 parent 9534733 commit d822360
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/st_colormod.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,6 @@ def handle_vars(string, variables, parents=None):
return RE_VARS.sub(functools.partial(_var_replace, var=temp_vars, parents=parent_vars), string)


def contrast_ratio(lum1, lum2):
"""Get contrast ratio."""

return (lum1 + 0.05) / (lum2 + 0.05) if (lum1 > lum2) else (lum2 + 0.05) / (lum1 + 0.05)


class ColorMod:
"""Color utilities."""

Expand Down

0 comments on commit d822360

Please sign in to comment.