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