remove unused function
This commit is contained in:
parent
d52111ca8e
commit
7f7f8390ff
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue