From ffd1bd9a8874606626198f8df39b196b5f134dca Mon Sep 17 00:00:00 2001 From: Christophe de Vienne Date: Mon, 27 May 2024 11:12:56 +0200 Subject: [PATCH] hg: cleanup dead code Signed-off-by: Christophe de Vienne --- pkg/vendir/fetch/hg/hg.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pkg/vendir/fetch/hg/hg.go b/pkg/vendir/fetch/hg/hg.go index 15a9b0ca..7fd105e2 100644 --- a/pkg/vendir/fetch/hg/hg.go +++ b/pkg/vendir/fetch/hg/hg.go @@ -81,16 +81,6 @@ func (t *hg) syncClone(dstPath string) error { return nil } -func (t *hg) localClone(localClone, dstPath string) error { - if err := t.initClone(dstPath); err != nil { - return err - } - if _, _, err := t.run([]string{"pull", localClone}, dstPath); err != nil { - return err - } - return nil -} - func (t *hg) checkout(dstPath string) (hgInfo, error) { if _, _, err := t.run([]string{"checkout", t.opts.Ref}, dstPath); err != nil { return hgInfo{}, err