Remove unreachable utility functions (bd-224, bd-214)

- Remove duplicate computeIssueContentHash from sqlite/hash.go
- Remove FileUsed() from internal/config/config.go
- Remove verifyIssueOpen() test helper from git_sync_test.go
- Remove unimplemented SummarizeTier2 and all tier2 infrastructure from haiku.go

Removes ~120 LOC of dead code identified by deadcode analyzer.

Amp-Thread-ID: https://ampcode.com/threads/T-5f150c35-8d67-4dae-bb92-a7b5887d649d
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Steve Yegge
2025-10-27 20:45:59 -07:00
parent 64a464fe6f
commit 298d559407
5 changed files with 0 additions and 132 deletions

View File

@@ -90,38 +90,6 @@ func TestRenderTier1Prompt(t *testing.T) {
}
}
func TestRenderTier2Prompt(t *testing.T) {
client, err := NewHaikuClient("test-key")
if err != nil {
t.Fatalf("unexpected error: %v", err)
}
issue := &types.Issue{
ID: "bd-1",
Title: "Fix authentication bug",
Description: "**Summary:** Fixed OAuth login flow by adding proper error handling.",
Status: types.StatusClosed,
}
prompt, err := client.renderTier2Prompt(issue)
if err != nil {
t.Fatalf("failed to render prompt: %v", err)
}
if !strings.Contains(prompt, "Fix authentication bug") {
t.Error("prompt should contain title")
}
if !strings.Contains(prompt, "Fixed OAuth login flow") {
t.Error("prompt should contain current description")
}
if !strings.Contains(prompt, "150 words") {
t.Error("prompt should contain word limit")
}
if !strings.Contains(prompt, "ultra-compression") {
t.Error("prompt should indicate ultra-compression")
}
}
func TestRenderTier1Prompt_HandlesEmptyFields(t *testing.T) {
client, err := NewHaikuClient("test-key")
if err != nil {