Skip to content

Commit ed05470

Browse files
committed
Cleanup: remove unused method ConfiguredPager
This could have been removed in commit 9657b43.
1 parent 1c87776 commit ed05470

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

pkg/commands/git_commands/config.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package git_commands
22

33
import (
4-
"os"
54
"strconv"
6-
"strings"
75

86
gogit "github.com/jesseduffield/go-git/v5"
97
"github.com/jesseduffield/go-git/v5/config"
@@ -31,17 +29,6 @@ func NewConfigCommands(
3129
}
3230
}
3331

34-
func (self *ConfigCommands) ConfiguredPager() string {
35-
if os.Getenv("GIT_PAGER") != "" {
36-
return os.Getenv("GIT_PAGER")
37-
}
38-
if os.Getenv("PAGER") != "" {
39-
return os.Getenv("PAGER")
40-
}
41-
output := self.gitConfig.Get("core.pager")
42-
return strings.Split(output, "\n")[0]
43-
}
44-
4532
func (self *ConfigCommands) GetPager(width int) string {
4633
templateValues := map[string]string{
4734
"columnWidth": strconv.Itoa(width/2 - 6),

0 commit comments

Comments
 (0)