Skip to content

Commit

Permalink
hg: code cleaning: drop unused function
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe de Vienne <[email protected]>
  • Loading branch information
cdevienne committed Apr 2, 2024
1 parent 1f7ac92 commit e0c3e90
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions pkg/vendir/fetch/hg/hg.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,27 +229,6 @@ func (t *Hg) initClone(dstPath string) error {
return nil
}

func (t *Hg) fetch(dstPath string, tempArea ctlfetch.TempArea) error {
if err := t.initClone(dstPath); err != nil {
return err
}

return t.runMultiple([][]string{
{"pull"},
{"checkout", t.opts.Ref},
}, dstPath)
}

func (t *Hg) runMultiple(argss [][]string, dstPath string) error {
for _, args := range argss {
_, _, err := t.run(args, dstPath)
if err != nil {
return err
}
}
return nil
}

func (t *Hg) run(args []string, dstPath string) (string, string, error) {
var stdoutBs, stderrBs bytes.Buffer

Expand Down

0 comments on commit e0c3e90

Please sign in to comment.