From f44a451ad359099681679509308a0bec404494e0 Mon Sep 17 00:00:00 2001 From: Vishal Nayak Date: Wed, 6 Dec 2017 18:55:43 -0500 Subject: [PATCH] remove unused function (#3657) --- vault/mount.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/vault/mount.go b/vault/mount.go index b45a1afe44..e4aea21005 100644 --- a/vault/mount.go +++ b/vault/mount.go @@ -1,8 +1,6 @@ package vault import ( - "crypto/sha1" - "encoding/json" "errors" "fmt" "sort" @@ -125,16 +123,6 @@ func (t *MountTable) shallowClone() *MountTable { 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 func (t *MountTable) setTaint(path string, value bool) *MountEntry { n := len(t.Entries)