From ed054707327b70477865f4fe0be5210d278b84fa Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Wed, 8 Oct 2025 16:12:52 +0200 Subject: [PATCH] Cleanup: remove unused method ConfiguredPager This could have been removed in commit 9657b4346fe2. --- pkg/commands/git_commands/config.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/pkg/commands/git_commands/config.go b/pkg/commands/git_commands/config.go index 1bed98985..40cf041b3 100644 --- a/pkg/commands/git_commands/config.go +++ b/pkg/commands/git_commands/config.go @@ -1,9 +1,7 @@ package git_commands import ( - "os" "strconv" - "strings" gogit "github.com/jesseduffield/go-git/v5" "github.com/jesseduffield/go-git/v5/config" @@ -31,17 +29,6 @@ func NewConfigCommands( } } -func (self *ConfigCommands) ConfiguredPager() string { - if os.Getenv("GIT_PAGER") != "" { - return os.Getenv("GIT_PAGER") - } - if os.Getenv("PAGER") != "" { - return os.Getenv("PAGER") - } - output := self.gitConfig.Get("core.pager") - return strings.Split(output, "\n")[0] -} - func (self *ConfigCommands) GetPager(width int) string { templateValues := map[string]string{ "columnWidth": strconv.Itoa(width/2 - 6),