diff --git a/daemon/containerd/service.go b/daemon/containerd/service.go index 1d841976b3..52f590ec93 100644 --- a/daemon/containerd/service.go +++ b/daemon/containerd/service.go @@ -113,11 +113,6 @@ func (cs *ImageService) GetLayerFolders(img *image.Image, rwLayer layer.RWLayer) panic("not implemented") } -// Map returns a map of all images in the ImageStore. -func (cs *ImageService) Map() map[image.ID]*image.Image { - panic("not implemented") -} - // GetLayerByID returns a layer by ID // called from daemon.go Daemon.restore(), and Daemon.containerExport(). func (cs *ImageService) GetLayerByID(string) (layer.RWLayer, error) { diff --git a/daemon/image_service.go b/daemon/image_service.go index 48842b47bd..032a9977e5 100644 --- a/daemon/image_service.go +++ b/daemon/image_service.go @@ -68,7 +68,6 @@ type ImageService interface { // Other GetRepository(ctx context.Context, ref reference.Named, authConfig *types.AuthConfig) (distribution.Repository, error) - Map() map[image.ID]*image.Image SearchRegistryForImages(ctx context.Context, searchFilters filters.Args, term string, limit int, authConfig *types.AuthConfig, headers map[string][]string) (*registry.SearchResults, error) DistributionServices() images.DistributionServices Children(id image.ID) []image.ID diff --git a/daemon/images/images.go b/daemon/images/images.go index 7f61c98013..53dfa02b71 100644 --- a/daemon/images/images.go +++ b/daemon/images/images.go @@ -33,11 +33,6 @@ func (r byCreated) Len() int { return len(r) } func (r byCreated) Swap(i, j int) { r[i], r[j] = r[j], r[i] } func (r byCreated) Less(i, j int) bool { return r[i].Created < r[j].Created } -// Map returns a map of all images in the ImageStore -func (i *ImageService) Map() map[image.ID]*image.Image { - return i.imageStore.Map() -} - // Images returns a filtered list of images. func (i *ImageService) Images(_ context.Context, opts types.ImageListOptions) ([]*types.ImageSummary, error) { if err := opts.Filters.Validate(acceptedImageFilterTags); err != nil {