Remove unused functions and constants (#6175)

This commit is contained in:
Harshavardhana
2018-07-20 11:07:43 -07:00
committed by Nitish Tiwari
parent 963a70053b
commit 36ab615518
6 changed files with 4 additions and 52 deletions

View File

@@ -17,7 +17,6 @@
package madmin
import (
"crypto/md5"
"encoding/json"
"io"
"io/ioutil"
@@ -38,13 +37,6 @@ func sum256(data []byte) []byte {
return hash.Sum(nil)
}
// sumMD5 calculate sumMD5 sum for an input byte array.
func sumMD5(data []byte) []byte {
hash := md5.New()
hash.Write(data)
return hash.Sum(nil)
}
// jsonDecoder decode json to go type.
func jsonDecoder(body io.Reader, v interface{}) error {
d := json.NewDecoder(body)