From 9f7775df263a83c5e0e845955a7abcd989f62d2a Mon Sep 17 00:00:00 2001 From: Anthony HAMON Date: Thu, 30 Aug 2018 00:54:54 +0200 Subject: [PATCH] pkg/git : remove unused Map function --- pkg/commands/git.go | 9 --------- 1 file changed, 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 {