Skip to content

Commit

Permalink
Vestigial no more
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud committed Sep 24, 2024
1 parent e5ed8a2 commit f0905e8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
11 changes: 0 additions & 11 deletions command/agent/job_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions command/job_tag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
4 changes: 1 addition & 3 deletions command/job_tag_unset.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f0905e8

Please sign in to comment.