diff --git a/command/agent/job_endpoint.go b/command/agent/job_endpoint.go index cede8e4bcb0..08e37a88f85 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 8d71592fe0c..397a23b25c7 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 08b1a38d6a2..21c841f8883 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 {