Skip to content

Commit

Permalink
refactor: remove ReverseSlice, it's not used
Browse files Browse the repository at this point in the history
  • Loading branch information
londek committed Aug 21, 2023
1 parent c63ee04 commit 8123374
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions render/renderContext.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8123374

Please sign in to comment.