From ec855775890d65ac9199dc8518129630d94e7649 Mon Sep 17 00:00:00 2001 From: Steve Yegge Date: Thu, 25 Dec 2025 17:15:02 -0800 Subject: [PATCH] fix: Remove unused code from wisp.go (code review followup) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove resolvePartialIDDirect function and context import that became dead code after switching to resolveOrCookFormula in bd-rciw. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- cmd/bd/wisp.go | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/cmd/bd/wisp.go b/cmd/bd/wisp.go index 270d6e44..c6c8d61c 100644 --- a/cmd/bd/wisp.go +++ b/cmd/bd/wisp.go @@ -1,7 +1,6 @@ package main import ( - "context" "encoding/json" "fmt" "os" @@ -244,28 +243,6 @@ func isProtoIssue(issue *types.Issue) bool { return false } -// resolvePartialIDDirect resolves a partial ID directly from store -func resolvePartialIDDirect(ctx context.Context, partial string) (string, error) { - // Try direct lookup first - if issue, err := store.GetIssue(ctx, partial); err == nil { - return issue.ID, nil - } - // Search by prefix - issues, err := store.SearchIssues(ctx, "", types.IssueFilter{ - IDs: []string{partial + "*"}, - }) - if err != nil { - return "", err - } - if len(issues) == 1 { - return issues[0].ID, nil - } - if len(issues) > 1 { - return "", fmt.Errorf("ambiguous ID: %s matches %d issues", partial, len(issues)) - } - return "", fmt.Errorf("not found: %s", partial) -} - var wispListCmd = &cobra.Command{ Use: "list", Short: "List all wisps in current context",