浏览代码

Merge pull request #47198 from thaJeztah/image_remove_IDFromDigest

image: remove deprecated IDFromDigest
Sebastiaan van Stijn 1 年之前
父节点
当前提交
115c7673dc
共有 1 个文件被更改,包括 0 次插入7 次删除
  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