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

@@ -1,22 +0,0 @@
/*
* Minio Cloud Storage, (C) 2016 Minio, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package madmin
const (
// Unsigned payload.
unsignedPayload = "UNSIGNED-PAYLOAD"
)

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)