Remove unused code

This commit is contained in:
Sam Coe 2021-02-09 09:48:58 -08:00
parent 4ed94c2a06
commit cd9f211826
No known key found for this signature in database
GPG key ID: 8E322C20F811D086

View file

@ -12,7 +12,6 @@ import (
prShared "github.com/cli/cli/pkg/cmd/pr/shared"
"github.com/cli/cli/pkg/cmdutil"
"github.com/cli/cli/pkg/iostreams"
"github.com/cli/cli/utils"
"github.com/shurcooL/githubv4"
"github.com/spf13/cobra"
)
@ -22,7 +21,6 @@ type EditOptions struct {
IO *iostreams.IOStreams
BaseRepo func() (ghrepo.Interface, error)
OpenInBrowser func(string) error
DetermineEditor func() (string, error)
FieldsToEditSurvey func(*prShared.EditableOptions) error
EditableSurvey func(string, *prShared.EditableOptions) error
@ -38,7 +36,6 @@ func NewCmdEdit(f *cmdutil.Factory, runF func(*EditOptions) error) *cobra.Comman
opts := &EditOptions{
IO: f.IOStreams,
HttpClient: f.HttpClient,
OpenInBrowser: utils.OpenInBrowser,
DetermineEditor: func() (string, error) { return cmdutil.DetermineEditor(f.Config) },
FieldsToEditSurvey: prShared.FieldsToEditSurvey,
EditableSurvey: prShared.EditableSurvey,