From 715c71830ebab96b95f798f8f3e029793eb68973 Mon Sep 17 00:00:00 2001 From: Finessse Date: Sat, 27 Dec 2025 02:35:02 +0700 Subject: [PATCH] refactor(auth): remove unused ProjectSelectionError type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Type was defined but never used anywhere in codebase. Keep EmailRequiredError which is actively used. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- sdk/auth/errors.go | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/sdk/auth/errors.go b/sdk/auth/errors.go index 78fe9a17..eee4019f 100644 --- a/sdk/auth/errors.go +++ b/sdk/auth/errors.go @@ -1,32 +1,5 @@ package auth -import ( - "fmt" - - "github.com/router-for-me/CLIProxyAPI/v6/internal/interfaces" -) - -// ProjectSelectionError indicates that the user must choose a specific project ID. -type ProjectSelectionError struct { - Email string - Projects []interfaces.GCPProjectProjects -} - -func (e *ProjectSelectionError) Error() string { - if e == nil { - return "cliproxy auth: project selection required" - } - return fmt.Sprintf("cliproxy auth: project selection required for %s", e.Email) -} - -// ProjectsDisplay returns the projects list for caller presentation. -func (e *ProjectSelectionError) ProjectsDisplay() []interfaces.GCPProjectProjects { - if e == nil { - return nil - } - return e.Projects -} - // EmailRequiredError indicates that the calling context must provide an email or alias. type EmailRequiredError struct { Prompt string