From 84e2262ad63df2112f16b2a80fc661294c3da45e Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 12 Feb 2025 20:15:04 +0900 Subject: Make --accept-nth and --with-nth support templates --- src/util/chars.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/util') diff --git a/src/util/chars.go b/src/util/chars.go index dd037caa..adde02a6 100644 --- a/src/util/chars.go +++ b/src/util/chars.go @@ -184,11 +184,6 @@ func (chars *Chars) TrailingWhitespaces() int { return whitespaces } -func (chars *Chars) TrimTrailingWhitespaces() { - whitespaces := chars.TrailingWhitespaces() - chars.slice = chars.slice[0 : len(chars.slice)-whitespaces] -} - func (chars *Chars) TrimSuffix(runes []rune) { lastIdx := len(chars.slice) firstIdx := lastIdx - len(runes) -- cgit v1.2.3