From a429d1fd53844eae723b400995999c063fa44d2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Tue, 10 Sep 2024 13:47:15 +0200 Subject: [PATCH] Remove unneeded code 'min' and 'max' functions are part of stdlib from go 1.21 --- cmd/openqa-revtui/tui.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/cmd/openqa-revtui/tui.go b/cmd/openqa-revtui/tui.go index 95ac3b0..b5c3e09 100644 --- a/cmd/openqa-revtui/tui.go +++ b/cmd/openqa-revtui/tui.go @@ -705,17 +705,3 @@ func spaces(n int) string { } return ret } - -func max(x, y int) int { - if x > y { - return x - } - return y -} - -func min(x, y int) int { - if x < y { - return x - } - return y -}