From 81233748aeacb909617ff458b3314d128d0f92fa Mon Sep 17 00:00:00 2001 From: londek <48859717+Londek@users.noreply.github.com> Date: Mon, 21 Aug 2023 18:35:34 +0200 Subject: [PATCH] refactor: remove ReverseSlice, it's not used --- render/renderContext.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/render/renderContext.go b/render/renderContext.go index d3d2098..1c2538a 100644 --- a/render/renderContext.go +++ b/render/renderContext.go @@ -75,12 +75,6 @@ type renderContext struct { parent *renderContext } -func ReverseSlice[T any](s []T) { - for i, j := 0, len(s)-1; i < j; i, j = i+1, j-1 { - s[i], s[j] = s[j], s[i] - } -} - func (rc *renderContext) MinWidth(minWidth any) *renderContext { rc.minWidth = Length(minWidth) return rc