From d3678c46f22fe477a33e5ed94febeb927590d796 Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Wed, 3 Nov 2021 22:55:23 -0700 Subject: [PATCH] Revert "Add a function for getting a quick hash/checksum" This reverts commit 6858abac044746f4195515b3c1ed65ba8c2f0307. This was unintentional --- share/functions/fish_fletcher16.fish | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 share/functions/fish_fletcher16.fish diff --git a/share/functions/fish_fletcher16.fish b/share/functions/fish_fletcher16.fish deleted file mode 100644 index beaf8cb20..000000000 --- a/share/functions/fish_fletcher16.fish +++ /dev/null @@ -1,10 +0,0 @@ -function fish_fletcher16 --argument input -d "compute a fletcher 16 checksum" - set -l sum1 0 - set -l sum2 0 - for char in (string split '' $input) - set -l ordinal (printf %2u "'$char") - math "($sum1 + $ordinal)" % 255 | read sum1 - math "($sum2 + $sum1)" % 255 | read sum2 - end - math "bitor $sum1,$(math $sum2 '*' pow 2,8)" -end