From 2dcc1f78282545d9f1c89ae8d3a3d18adadf5fb3 Mon Sep 17 00:00:00 2001 From: Phil Renaud Date: Tue, 24 Sep 2024 09:42:00 -0400 Subject: [PATCH] Vestigial no more --- command/agent/job_endpoint.go | 11 ----------- command/job_tag_test.go | 2 -- command/job_tag_unset.go | 4 +--- 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/command/agent/job_endpoint.go b/command/agent/job_endpoint.go index cede8e4bcb01..08e37a88f852 100644 --- a/command/agent/job_endpoint.go +++ b/command/agent/job_endpoint.go @@ -419,17 +419,6 @@ func (s *HTTPServer) jobTagVersion(resp http.ResponseWriter, req *http.Request, } } -// parseVersion parses the version flag and returns the index, whether it -// was set and potentially an error during parsing. -func parseVersion(input string) (uint64, bool, error) { - if input == "" { - return 0, false, nil - } - - u, err := strconv.ParseUint(input, 10, 64) - return u, true, err -} - func (s *HTTPServer) jobVersionApplyTag(resp http.ResponseWriter, req *http.Request, jobID string, name string) (interface{}, error) { var args api.TagVersionRequest diff --git a/command/job_tag_test.go b/command/job_tag_test.go index 8d71592fe0c1..397a23b25c78 100644 --- a/command/job_tag_test.go +++ b/command/job_tag_test.go @@ -42,8 +42,6 @@ func TestJobTagApplyCommand_Run(t *testing.T) { v0 := mock.Job() state := srv.Agent.Server().State() - // err := state.UpsertJob(structs.MsgTypeTestSetup, 1000, nil, v0) - // must.NoError(t, err) v0.ID = "test-job-applyer" must.NoError(t, state.UpsertJob(structs.MsgTypeTestSetup, 1000, nil, v0)) diff --git a/command/job_tag_unset.go b/command/job_tag_unset.go index 08b1a38d6a22..21c841f88835 100644 --- a/command/job_tag_unset.go +++ b/command/job_tag_unset.go @@ -39,9 +39,7 @@ func (c *JobTagUnsetCommand) Synopsis() string { func (c *JobTagUnsetCommand) AutocompleteFlags() complete.Flags { return mergeAutocompleteFlags(c.Meta.AutocompleteFlags(FlagSetClient), - complete.Flags{ - // "-version": complete.PredictNothing, - }) + complete.Flags{}) } func (c *JobTagUnsetCommand) AutocompleteArgs() complete.Predictor {