From aa46a69f77bdc063edbac586b33f84e6382feefc Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sat, 4 Jul 2026 13:03:47 +0200 Subject: [PATCH] Remove unused function ExpectClipboard This can't be used because it wouldn't work on CI; delete it so that coding agents aren't tempted to use it. --- pkg/integration/components/test_driver.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pkg/integration/components/test_driver.go b/pkg/integration/components/test_driver.go index 301ab3862..376b0f4d6 100644 --- a/pkg/integration/components/test_driver.go +++ b/pkg/integration/components/test_driver.go @@ -4,7 +4,6 @@ import ( "fmt" "time" - "github.com/atotto/clipboard" "github.com/jesseduffield/lazygit/pkg/config" integrationTypes "github.com/jesseduffield/lazygit/pkg/integration/types" ) @@ -125,17 +124,6 @@ func (self *TestDriver) ExpectToast(matcher *TextMatcher) *TestDriver { return self } -func (self *TestDriver) ExpectClipboard(matcher *TextMatcher) { - self.assertWithRetries(func() (bool, string) { - text, err := clipboard.ReadAll() - if err != nil { - return false, "Error occurred when reading from clipboard: " + err.Error() - } - ok, _ := matcher.test(text) - return ok, fmt.Sprintf("Expected clipboard to match %s, but got %s", matcher.name(), text) - }) -} - func (self *TestDriver) ExpectSearch() *SearchDriver { self.inSearch()