Skip to content

Commit

Permalink
remove un-used function
Browse files Browse the repository at this point in the history
  • Loading branch information
belimawr committed Jun 17, 2024
1 parent 9d13546 commit e46948b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions internal/pkg/agent/cmd/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit e46948b

Please sign in to comment.