summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorAnthony HAMON <hamon.anth@gmail.com>2018-08-30 00:54:54 +0200
committerAnthony HAMON <hamon.anth@gmail.com>2018-09-04 06:21:58 +0200
commit9f7775df263a83c5e0e845955a7abcd989f62d2a (patch)
tree35b255035024ca8ce5992fa8d6c743b969c2f6e0 /pkg
parentc1984528c8b8ee2d6d9ffdc50f31c1f81c7b97a3 (diff)
pkg/git : remove unused Map function
Diffstat (limited to 'pkg')
-rw-r--r--pkg/commands/git.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/pkg/commands/git.go b/pkg/commands/git.go
index 101a45515..48d51e900 100644
--- a/pkg/commands/git.go
+++ b/pkg/commands/git.go
@@ -466,15 +466,6 @@ func (c *GitCommand) GetBranchGraph(branchName string) (string, error) {
return c.OSCommand.RunCommandWithOutput("git log --graph --color --abbrev-commit --decorate --date=relative --pretty=medium -100 " + branchName)
}
-// Map (from https://gobyexample.com/collection-functions)
-func Map(vs []string, f func(string) string) []string {
- vsm := make([]string, len(vs))
- for i, v := range vs {
- vsm[i] = f(v)
- }
- return vsm
-}
-
func includesString(list []string, a string) bool {
for _, b := range list {
if b == a {