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