moby/layer
Sebastiaan van Stijn 782fe1fe82
layer: ChecksumForGraphID: remove unused code for for migrating v1 layers
The only use is in `builder/builder-next/adapters/snapshot.EnsureLayer()`,
which always calls the function with an _empty_ `oldTarDataPath`;
7082aecd54/builder/builder-next/adapters/snapshot/layer.go (L81)

When called with an empty `oldTarDataPath`, this function was an alias for
`checksumForGraphIDNoTarsplit`, so let's make it that.

Note that this code was added in 500e77bad0, as
part of the migration from "v1" images to "v2" (content-addressable) images.

Given that the remaining code lives in a "migration" file, possibly more code
can be removed.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-01-08 12:28:41 +01:00
..
empty.go layer: remove unused error return from .Size() and .DiffSize() 2022-01-24 18:45:47 +01:00
empty_test.go remove unneeded "digest" alias for "go-digest" 2022-03-04 14:49:42 +01:00
filestore.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
filestore_test.go layer: gofumpt 2022-10-08 19:15:28 +02:00
layer.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
layer_store.go migrate to github.com/containerd/log v0.1.0 2023-10-11 17:52:23 +02:00
layer_store_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
layer_test.go use errors.Is() to handle image store errors 2023-01-02 09:41:50 +01:00
layer_unix.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
layer_unix_test.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
layer_windows.go pkg/containerfs: alias ContainerFS to string 2022-09-23 16:56:52 -04:00
migration.go layer: ChecksumForGraphID: remove unused code for for migrating v1 layers 2024-01-08 12:28:41 +01:00
migration_test.go layer: ChecksumForGraphID: remove unused code for for migrating v1 layers 2024-01-08 12:28:41 +01:00
mount_test.go layer: gofumpt 2022-10-08 19:15:28 +02:00
mounted_layer.go pkg/containerfs: drop ContainerFS type alias 2022-09-23 16:56:53 -04:00
ro_layer.go layer: gofumpt 2022-10-08 19:15:28 +02:00
ro_layer_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00