File tree Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,6 @@ import (
88 "strings"
99)
1010
11- const (
12- // DigestSha256EmptyTar is the canonical sha256 digest of empty data
13- DigestSha256EmptyTar = "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
14- )
15-
1611// Digest allows simple protection of hex formatted digest strings, prefixed
1712// by their algorithm. Strings of type Digest have some guarantee of being in
1813// the correct format and it provides quick access to the components of a
@@ -68,11 +63,6 @@ func Parse(s string) (Digest, error) {
6863 return d , d .Validate ()
6964}
7065
71- // ParseDigest is deprecated. Use Parse.
72- func ParseDigest (s string ) (Digest , error ) {
73- return Parse (s )
74- }
75-
7666// FromReader returns the most valid digest for the underlying content using
7767// the canonical digest algorithm.
7868func FromReader (rd io.Reader ) (Digest , error ) {
Original file line number Diff line number Diff line change @@ -17,11 +17,6 @@ type Verifier interface {
1717 Verified () bool
1818}
1919
20- // NewDigestVerifier is deprecated. Please use Digest.Verifier.
21- func NewDigestVerifier (d Digest ) (Verifier , error ) {
22- return d .Verifier (), nil
23- }
24-
2520type hashVerifier struct {
2621 digest Digest
2722 hash hash.Hash
You can’t perform that action at this time.
0 commit comments