fix(CubeNet): Remove dead code - #1583
Conversation
Signed-off-by: yarrischen <yarrischen@tencent.com>
| // Errors that will be returned to upper layer. | ||
| var ( | ||
| // ErrProgNotExist is returned when there is no specified BPF program in BPF object. | ||
| ErrProgNotExist = errors.New("BPF program not exists") |
There was a problem hiding this comment.
Minor, non-blocking: ErrProgNotExist is an exported error in a library package (// Package cubevs is a library to manage CubeVS.). It has no in-repo references, so removal is fine, but it's technically a public API surface change — any external consumer of this package referencing the symbol would break. Acceptable for a dead-code cleanup; just worth being aware of. The two unexported removals (reapDNSLearnedPoliciesForInnerMap, ingressSession) are unambiguously safe, and keeping the ingressSessionValue struct (still used by the size assert in cubevs.go:327 and dump.go:466) is correct.
Review: fix(CubeNet): Remove dead code (#1583)This review was AI-generated. Verdict: Approve. The PR deletes three symbols that are genuinely unreferenced across the entire repository, and the removals leave no orphaned imports or types. Clean, safe dead-code removal. VerificationI searched the full base tree for each removed symbol:
Import safety — no import becomes unused after the deletions:
Type retention is correct — the PR keeps Minor note (non-blocking)
Suggested follow-up (optional)Nothing blocking. If you want to keep the "dead code" cleanup complete, consider a quick |
Remove dead code in /CubeNet