aboutsummaryrefslogtreecommitdiffstats
path: root/repository/mock_repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'repository/mock_repo.go')
-rw-r--r--repository/mock_repo.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/repository/mock_repo.go b/repository/mock_repo.go
index 20fb3d87..50907876 100644
--- a/repository/mock_repo.go
+++ b/repository/mock_repo.go
@@ -3,7 +3,6 @@ package repository
import (
"crypto/sha1"
"fmt"
- "strings"
"github.com/MichaelMure/git-bug/util"
)
@@ -140,21 +139,6 @@ func (r *mockRepoForTest) ListRefs(refspec string) ([]string, error) {
return keys, nil
}
-// ListIds will return a list of Git ref matching the given refspec,
-// stripped to only the last part of the ref
-func (r *mockRepoForTest) ListIds(refspec string) ([]string, error) {
- keys := make([]string, len(r.refs))
-
- i := 0
- for k := range r.refs {
- splitted := strings.Split(k, "/")
- keys[i] = splitted[len(splitted)-1]
- i++
- }
-
- return keys, nil
-}
-
func (r *mockRepoForTest) ListCommits(ref string) ([]util.Hash, error) {
var hashes []util.Hash