remove unused function

This commit is contained in:
Ted Unangst 2019-04-13 16:00:21 -04:00
parent d52111ca8e
commit 7f7f8390ff
1 changed files with 0 additions and 8 deletions

View File

@ -19,7 +19,6 @@ import (
"bytes" "bytes"
"compress/gzip" "compress/gzip"
"crypto/rsa" "crypto/rsa"
"crypto/sha256"
"database/sql" "database/sql"
"encoding/json" "encoding/json"
"fmt" "fmt"
@ -180,13 +179,6 @@ func jsongetmap(j interface{}, key string) (map[string]interface{}, bool) {
return jsonfindmap(j, []string{key}) 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 { func savedonk(url string, name, media string) *Donk {
log.Printf("saving donk: %s", url) log.Printf("saving donk: %s", url)
var donk Donk var donk Donk