From 18d610c45d6dc768abc83f409a37025928b06abd Mon Sep 17 00:00:00 2001 From: andev0x Date: Sun, 21 Jun 2026 18:43:47 +0700 Subject: [PATCH] fix(cli): remove unused function - apply semantic repository updates --- internal/cli/commands/root.go | 17 ----------------- internal/parser/golang/parser.go | 5 +---- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/internal/cli/commands/root.go b/internal/cli/commands/root.go index e159a5c..628f1dd 100644 --- a/internal/cli/commands/root.go +++ b/internal/cli/commands/root.go @@ -77,23 +77,6 @@ func normalizeSymbolInput(input string) string { return s } -// extractBaseName extracts the last meaningful name component from an input string. -// For "func:cmd/server:main" it returns "main". -// For "method:internal/wallet:UpdateBalance" it returns "UpdateBalance". -// For "main" it returns "main" unchanged. -func extractBaseName(input string) string { - // Find the last colon or dot separator - lastColon := strings.LastIndex(input, ":") - lastDot := strings.LastIndex(input, ".") - lastSep := lastColon - if lastDot > lastSep { - lastSep = lastDot - } - if lastSep >= 0 && lastSep < len(input)-1 { - return input[lastSep+1:] - } - return input -} // resolveSymbolID normalizes user input for symbol lookups (Issue 4 fix). // It tries multiple strategies: diff --git a/internal/parser/golang/parser.go b/internal/parser/golang/parser.go index 6dd8941..d380175 100644 --- a/internal/parser/golang/parser.go +++ b/internal/parser/golang/parser.go @@ -44,10 +44,7 @@ func isStdlibImport(importPath, moduleName string) bool { return !strings.Contains(firstSeg, ".") } -// isInternalModulePath checks if the import path belongs to the current module. -func isInternalModulePath(path, moduleName string) bool { - return moduleName != "" && strings.HasPrefix(path, moduleName) -} + // StructFieldInfo holds the type information for a struct field. type StructFieldInfo struct {