From cf8616477432e71365fea014168a06e2ddf6b2ab Mon Sep 17 00:00:00 2001 From: Naveen Mahalingam Date: Wed, 2 Oct 2024 17:46:45 -0700 Subject: [PATCH] remove dead code --- text/wrap.go | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/text/wrap.go b/text/wrap.go index 27e7175..9b39ac4 100644 --- a/text/wrap.go +++ b/text/wrap.go @@ -85,40 +85,6 @@ func WrapText(str string, wrapLen int) string { } return out.String() - - //if wrapLen <= 0 { - // return "" - //} - // - //var out strings.Builder - //sLen := utf8.RuneCountInString(str) - //out.Grow(sLen + (sLen / wrapLen)) - // - //esp := escSeqParser{} - //lineIdx, isEscSeq, lastEscSeq := 0, false, "" - //for _, char := range str { - // if char == EscapeStartRune { - // isEscSeq = true - // lastEscSeq = "" - // } - // if isEscSeq { - // lastEscSeq += string(char) - // } - // - // appendChar(char, wrapLen, &lineIdx, isEscSeq, lastEscSeq, &out) - // - // if isEscSeq && char == EscapeStopRune { - // isEscSeq = false - // esp.Parse(lastEscSeq) - // } - // if lastEscSeq == EscapeReset { - // lastEscSeq = "" - // } - //} - //if lastEscSeq != "" && lastEscSeq != EscapeReset { - // out.WriteString(EscapeReset) - //} - //return out.String() } func appendChar(char rune, wrapLen int, lineLen *int, inEscSeq bool, lastSeenEscSeq string, out *strings.Builder) {