mirror of https://github.com/docker/docs.git
Cleanup: remove the unused function
Signed-off-by: Hu Keping <hukeping@huawei.com>
This commit is contained in:
parent
3a89320e5d
commit
f9681e6287
|
@ -85,10 +85,6 @@ func NewSnapshot(root *Signed, targets *Signed) (*SignedSnapshot, error) {
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (sp *SignedSnapshot) hashForRole(role string) []byte {
|
|
||||||
return sp.Signed.Meta[role].Hashes["sha256"]
|
|
||||||
}
|
|
||||||
|
|
||||||
// ToSigned partially serializes a SignedSnapshot for further signing
|
// ToSigned partially serializes a SignedSnapshot for further signing
|
||||||
func (sp *SignedSnapshot) ToSigned() (*Signed, error) {
|
func (sp *SignedSnapshot) ToSigned() (*Signed, error) {
|
||||||
s, err := defaultSerializer.MarshalCanonical(sp.Signed)
|
s, err := defaultSerializer.MarshalCanonical(sp.Signed)
|
||||||
|
|
Loading…
Reference in New Issue