Skip to content

Commit

Permalink
Remove unused method host.Start()
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumerose committed May 7, 2021
1 parent e4cbef0 commit ce3259f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pkg/libmachine/host/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,6 @@ func (h *Host) runActionForState(action func() error, desiredState state.State)
return crcerrors.RetryAfter(3*time.Minute, MachineInState(h.Driver, desiredState), 3*time.Second)
}

func (h *Host) Start() error {
log.Debugf("Starting %q...", h.Name)
if err := h.runActionForState(h.Driver.Start, state.Running); err != nil {
return err
}

log.Debugf("Machine %q was started.", h.Name)

return nil
}

func (h *Host) Stop() error {
log.Debugf("Stopping %q...", h.Name)
if err := h.runActionForState(h.Driver.Stop, state.Stopped); err != nil {
Expand Down

0 comments on commit ce3259f

Please sign in to comment.