Skip to content

[dead-code] chore: remove dead functions — 5 functions removed #48660

Description

@github-actions

Caution

Protected files were modified in this change.
This pull request is in request_review mode and requires explicit human scrutiny before merge.

Protected files: README.md

Functions Removed

Function File
FindPricing pkg/modelsdev/catalog.go
ensureCatalog pkg/modelsdev/catalog.go
downloadAndParseCatalog pkg/modelsdev/catalog.go
parseCatalog pkg/modelsdev/catalog.go
parseCostMap pkg/modelsdev/catalog.go

Tests Removed

  • pkg/modelsdev/catalog_test.go (entire file: TestParseCatalog, TestParseCostMap, TestFindPricing, plus duplicated Normalize* tests kept in spec_test.go)
  • TestSpec_PublicAPI_FindPricing and TestSpec_DesignDecision_ProviderAliases in pkg/modelsdev/spec_test.go

NormalizeProvider and NormalizeComparableModelID were kept — still used by pkg/cli/model_costs.go. Also updated pkg/modelsdev/README.md to drop references to the removed pricing-catalog API.

Verification

  • go build ./...
  • go vet ./...
  • go vet -tags=integration ./...
  • make fmt

https://github.com/github/gh-aw/actions/runs/30370912502

Generated by 🧹 Dead Code Removal Agent · sonnet50 · 63.7 AIC · ⌖ 8 AIC · ⊞ 8.6K ·

  • expires on Jul 31, 2026, 7:09 AM UTC-08:00

Note

This was originally intended as a pull request, but the git push operation failed.

Original error: pushSignedCommits: refusing unsigned push for branch 'chore/remove-dead-modelsdev-catalog-code-bab8c7a338bfbeb6': Signed-commit payload violates file-protection policy (request_review): pkg/modelsdev/README.md

Workflow Run: View run details and download bundle artifact

The bundle file is available in the agent artifact in the workflow run linked above.

To create a pull request with the changes:

# Download the artifact from the workflow run
gh run download 30370912502 -n agent -D /tmp/agent-30370912502

# Fetch the bundle into a temporary ref, then update the local branch
git fetch /tmp/agent-30370912502/aw-chore-remove-dead-modelsdev-catalog-code.bundle refs/heads/chore/remove-dead-modelsdev-catalog-code:refs/bundles/create-pr-chore-remove-dead-modelsdev-catalog-code-bab8c7a338bfbeb6-a9e42123
git update-ref refs/heads/chore/remove-dead-modelsdev-catalog-code-bab8c7a338bfbeb6 refs/bundles/create-pr-chore-remove-dead-modelsdev-catalog-code-bab8c7a338bfbeb6-a9e42123
git checkout chore/remove-dead-modelsdev-catalog-code-bab8c7a338bfbeb6
# Ensure the working tree matches the updated branch
git reset --hard
# Remove the temporary bundle ref
git update-ref -d refs/bundles/create-pr-chore-remove-dead-modelsdev-catalog-code-bab8c7a338bfbeb6-a9e42123

# Push the branch to origin
git push origin chore/remove-dead-modelsdev-catalog-code-bab8c7a338bfbeb6

# Create the pull request
gh pr create --title '[dead-code] chore: remove dead functions — 5 functions removed' --base main --head chore/remove-dead-modelsdev-catalog-code-bab8c7a338bfbeb6 --repo github/gh-aw

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions