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