mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-28 18:11:10 +02:00
remove unused function (#3657)
This commit is contained in:
parent
18311d253d
commit
f44a451ad3
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user