Browse Source

image: remove deprecated IDFromDigest

This function was deprecated in 456ea1bb1dcdd7a07507f3ba71646bf4dfee5247
(Docker v24.0), and is no longer used.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 1 year ago
parent
commit
f7e2357745
1 changed files with 0 additions and 7 deletions
  1. 0 7
      image/image.go

+ 0 - 7
image/image.go

@@ -28,13 +28,6 @@ func (id ID) Digest() digest.Digest {
 	return digest.Digest(id)
 }
 
-// IDFromDigest creates an ID from a digest
-//
-// Deprecated: cast to an ID using ID(digest).
-func IDFromDigest(digest digest.Digest) ID {
-	return ID(digest)
-}
-
 // V1Image stores the V1 image configuration.
 type V1Image struct {
 	// ID is a unique 64 character identifier of the image