From bd4f29909e0750a4660eaf48e3169777a265b0ab Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 29 Aug 2026 18:38:52 +0900 Subject: internal/pkg: remove arch snapshot API This function has no current users and has no good use case, so remove it before the API is made stable. Signed-off-by: Ophestra --- internal/pkg/exec.go | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'internal') diff --git a/internal/pkg/exec.go b/internal/pkg/exec.go index e499ecf1..b40ae84b 100644 --- a/internal/pkg/exec.go +++ b/internal/pkg/exec.go @@ -7,7 +7,6 @@ import ( "errors" "fmt" "io" - "maps" "os" "os/exec" "path/filepath" @@ -130,15 +129,6 @@ func RegisterArch(arch string, e container.BinfmtEntry) { binfmt[arch] = e } -// Arch returns a snapshot of currently registered [KindExec] and [KindExecNet] -// binfmt entries. -func Arch() map[string]container.BinfmtEntry { - binfmtMu.RLock() - r := maps.Clone(binfmt) - binfmtMu.RUnlock() - return r -} - const ( // ExecTimeoutDefault replaces out of range [NewExec] timeout values. ExecTimeoutDefault = 15 * time.Minute -- cgit v1.3.1