about summary refs log tree commit diff stats
path: root/src/utils
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-07-06 15:56:19 +0200
committerbptato <nincsnevem662@gmail.com>2023-07-06 16:11:18 +0200
commitea70eea0b7a4abea2f944195ea69db5ea5b9f3ea (patch)
treef86ca4fce9a0e525a7f2744675b8ee88c814f259 /src/utils
parentb5146e27f103523494fdec0272a084c18afe1a69 (diff)
downloadchawan-ea70eea0b7a4abea2f944195ea69db5ea5b9f3ea.tar.gz
term: fix ANSI color approximation
Fixes a bug that lead to incorrect color approximation.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/chamath.nim4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/utils/chamath.nim b/src/utils/chamath.nim
deleted file mode 100644
index 579b7b69..00000000
--- a/src/utils/chamath.nim
+++ /dev/null
@@ -1,4 +0,0 @@
-func absSub*(a, b: SomeUnsignedInt): auto {.inline.} =
-  if a > b:
-    return a - b
-  return b - a