1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

daemon: ImageService: remove unused Map() method

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-07-18 11:21:34 +02:00
parent 5de77049db
commit 7b510fda0c
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
3 changed files with 0 additions and 11 deletions

View file

@ -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) {

View file

@ -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

View file

@ -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 {