about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <BOFH@YHBT.net>2023-06-05 10:12:46 +0000
committerEric Wong <bofh@yhbt.net>2023-06-05 10:38:57 +0000
commit7ff94f5961ea331d0995e6e81f3fd5bf8ed4d0ff (patch)
tree4842200f2dc0de85931ef9604cb50c3fbc58f957
parentc048abdd8508e8142928cdeb7889b31645c247ad (diff)
downloadunicorn-7ff94f5961ea331d0995e6e81f3fd5bf8ed4d0ff.tar.gz
These are no longer needed since Perl has long included
Digest::SHA
-rwxr-xr-xt/bin/sha1sum.rb17
-rw-r--r--t/test-lib.sh4
2 files changed, 0 insertions, 21 deletions
diff --git a/t/bin/sha1sum.rb b/t/bin/sha1sum.rb
deleted file mode 100755
index 53d68ce..0000000
--- a/t/bin/sha1sum.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/env ruby
-# -*- encoding: binary -*-
-# Reads from stdin and outputs the SHA1 hex digest of the input
-
-require 'digest/sha1'
-$stdout.sync = $stderr.sync = true
-$stdout.binmode
-$stdin.binmode
-bs = 16384
-digest = Digest::SHA1.new
-if buf = $stdin.read(bs)
-  begin
-    digest.update(buf)
-  end while $stdin.read(bs, buf)
-end
-
-$stdout.syswrite("#{digest.hexdigest}\n")
diff --git a/t/test-lib.sh b/t/test-lib.sh
index e70d0c6..8613144 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -123,7 +123,3 @@ unicorn_wait_start () {
         # no need to play tricks with FIFOs since we got "ready_pipe" now
         unicorn_pid=$(cat $pid)
 }
-
-rsha1 () {
-        sha1sum.rb
-}