Remove unused ghIds function and githubv4 import

Deleted the unused ghIds helper function and the associated githubv4 import from edit.go to clean up the codebase.
This commit is contained in:
Kynan Ware 2025-10-01 15:47:39 -06:00
parent 87468f40db
commit 7094a55eec

View file

@ -16,7 +16,6 @@ import (
"github.com/cli/cli/v2/pkg/cmdutil"
"github.com/cli/cli/v2/pkg/iostreams"
"github.com/cli/cli/v2/pkg/set"
"github.com/shurcooL/githubv4"
"github.com/spf13/cobra"
"golang.org/x/sync/errgroup"
)
@ -440,14 +439,3 @@ type editorRetriever struct {
func (e editorRetriever) Retrieve() (string, error) {
return cmdutil.DetermineEditor(e.config)
}
func ghIds(s *[]string) *[]githubv4.ID {
if s == nil {
return nil
}
ids := make([]githubv4.ID, len(*s))
for i, v := range *s {
ids[i] = v
}
return &ids
}