From 7f7f8390ff949868839772eb7733524011bec07f Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sat, 13 Apr 2019 16:00:21 -0400 Subject: [PATCH] remove unused function --- activity.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/activity.go b/activity.go index 4ef7419..c4298b7 100644 --- a/activity.go +++ b/activity.go @@ -19,7 +19,6 @@ import ( "bytes" "compress/gzip" "crypto/rsa" - "crypto/sha256" "database/sql" "encoding/json" "fmt" @@ -180,13 +179,6 @@ func jsongetmap(j interface{}, key string) (map[string]interface{}, bool) { return jsonfindmap(j, []string{key}) } -func sha256string(s string) string { - hasher := sha256.New() - io.WriteString(hasher, s) - sum := hasher.Sum(nil) - return fmt.Sprintf("%x", sum) -} - func savedonk(url string, name, media string) *Donk { log.Printf("saving donk: %s", url) var donk Donk