remove unused function (#3657)

This commit is contained in:
Vishal Nayak 2017-12-06 18:55:43 -05:00 committed by GitHub
parent 18311d253d
commit f44a451ad3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,6 @@
package vault package vault
import ( import (
"crypto/sha1"
"encoding/json"
"errors" "errors"
"fmt" "fmt"
"sort" "sort"
@ -125,16 +123,6 @@ func (t *MountTable) shallowClone() *MountTable {
return mt return mt
} }
// Hash is used to generate a hash value for the mount table
func (t *MountTable) Hash() ([]byte, error) {
buf, err := json.Marshal(t)
if err != nil {
return nil, err
}
hash := sha1.Sum(buf)
return hash[:], nil
}
// setTaint is used to set the taint on given entry // setTaint is used to set the taint on given entry
func (t *MountTable) setTaint(path string, value bool) *MountEntry { func (t *MountTable) setTaint(path string, value bool) *MountEntry {
n := len(t.Entries) n := len(t.Entries)