From e30d541da05f971daf4e4ad8180bd1e33d0b6201 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 29 Jul 2025 10:07:44 +0200 Subject: [PATCH] daemon/pkg/registry: remove unused ReadCertsDirectory Signed-off-by: Sebastiaan van Stijn --- daemon/pkg/registry/registry.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/daemon/pkg/registry/registry.go b/daemon/pkg/registry/registry.go index d69c1d9ec7..b1ba28f2b2 100644 --- a/daemon/pkg/registry/registry.go +++ b/daemon/pkg/registry/registry.go @@ -55,13 +55,6 @@ func hasFile(files []os.DirEntry, name string) bool { return false } -// ReadCertsDirectory reads the directory for TLS certificates -// including roots and certificate pairs and updates the -// provided TLS configuration. -func ReadCertsDirectory(tlsConfig *tls.Config, directory string) error { - return loadTLSConfig(context.TODO(), directory, tlsConfig) -} - // loadTLSConfig reads the directory for TLS certificates including roots and // certificate pairs, and updates the provided TLS configuration. func loadTLSConfig(ctx context.Context, directory string, tlsConfig *tls.Config) error {