Skip to content

Remove unused functions - #5139

Open
AkihiroSuda wants to merge 1 commit into
containerd:mainfrom
AkihiroSuda:cleanup
Open

Remove unused functions#5139
AkihiroSuda wants to merge 1 commit into
containerd:mainfrom
AkihiroSuda:cleanup

Conversation

@AkihiroSuda

Copy link
Copy Markdown
Member

Remove code that is no longer reachable, as reported by golang.org/x/tools/cmd/deadcode -test ./...:

  • The legacy testutil.Base/testutil.Cmd test framework (testutil.NewBase and friends), superseded by Tigron/nerdtest.
  • pkg/testutil/testregistry, only referenced from a commented-out test.
  • Unused helpers in cmd/nerdctl/helpers (ComposeUp, NewCosignKeyPair, CreateBuildContext).
  • Unused library functions in pkg/cmd/container, pkg/resolvconf, pkg/rootlessutil, pkg/internal/filesystem, and pkg/api/types/cri.

Also update docs/testing/README.md to stop referring to the removed API.

Assisted-by: Claude Fable 5 noreply@anthropic.com

Remove code that is no longer reachable, as reported by
`golang.org/x/tools/cmd/deadcode -test ./...`:

- The legacy `testutil.Base`/`testutil.Cmd` test framework
  (`testutil.NewBase` and friends), superseded by Tigron/nerdtest.
- `pkg/testutil/testregistry`, only referenced from a commented-out test.
- Unused helpers in `cmd/nerdctl/helpers` (`ComposeUp`, `NewCosignKeyPair`,
  `CreateBuildContext`).
- Unused library functions in `pkg/cmd/container`, `pkg/resolvconf`,
  `pkg/rootlessutil`, `pkg/internal/filesystem`, and `pkg/api/types/cri`.

Also update `docs/testing/README.md` to stop referring to the removed API.

Assisted-by: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda AkihiroSuda added this to the v2.4.0 milestone Aug 18, 2026
@AkihiroSuda
AkihiroSuda requested a review from a team August 18, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant