From e46948b76770907cb0c5254e5c4fe68c2076f262 Mon Sep 17 00:00:00 2001 From: Tiago Queiroz Date: Mon, 17 Jun 2024 17:36:03 -0400 Subject: [PATCH] remove un-used function --- internal/pkg/agent/cmd/container.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/internal/pkg/agent/cmd/container.go b/internal/pkg/agent/cmd/container.go index c48940f67e4..24c553b2af5 100644 --- a/internal/pkg/agent/cmd/container.go +++ b/internal/pkg/agent/cmd/container.go @@ -970,13 +970,3 @@ func isContainer(detail component.PlatformDetail) component.PlatformDetail { detail.OS = component.Container return detail } - -// isStatePathTooLong returns true if the final Unix socket path -// will be too long and needs to be shortened. -// -// Source: https://www.man7.org/linux/man-pages/man7/unix.7.html -func isStatePathTooLong(statePath string) bool { - // This replicates the logic from `setPaths` - socketPath := filepath.Join(statePath, "data", paths.ControlSocketName) - return len(socketPath) > 107 -}