From 3b7a53aa0b7f0abec11464ef7934cac68becee10 Mon Sep 17 00:00:00 2001 From: Michael Schuett Date: Wed, 21 Jul 2021 19:29:26 -0500 Subject: [PATCH] Remove unused code --- lib/git/lbranch_graph.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/git/lbranch_graph.go b/lib/git/lbranch_graph.go index 92ad316..c88bd14 100644 --- a/lib/git/lbranch_graph.go +++ b/lib/git/lbranch_graph.go @@ -76,11 +76,6 @@ func composeBranchNodes(repo *gogit.Repository) (map[string]branchNodeWrapper, e for _, branch := range config.Branches { // This might need to be a bit more complex but seems to work for every use case I can // currently think of. - // ref, err := repo.Reference(plumbing.ReferenceName("/refs/heads/"+branch.Name), true) - // if err != nil { - // return nil, fmt.Errorf("Uable to get branch reference for %s: %s", branch.Name, err.Error()) - // } - hash, err := RevParseRaw(branch.Name) if err != nil { return nil, fmt.Errorf("Uable to get branch reference for %s: %s", branch.Name, err.Error())