From: Marcel van Lohuizen Date: Wed, 5 Oct 2011 21:36:02 +0000 (-0700) Subject: exp/norm: LastBoundary is used in preparation for an append operation. It seems X-Git-Tag: weekly.2011-10-06~15 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9a8da9d4999f53fa4487cf3e36c3e5bc59fd6fee;p=gostls13.git exp/norm: LastBoundary is used in preparation for an append operation. It seems therefore unlikely that there is a good use for its string version LastBoundaryInString. Yet, the implemenation of this method would complicate things a bit as it would require the introduction for another interface and some duplication of code. Removing it seems a better choice. R=r CC=golang-dev https://golang.org/cl/5182044 --- diff --git a/src/pkg/exp/norm/normalize.go b/src/pkg/exp/norm/normalize.go index f3d4e50b09..391bc4184f 100644 --- a/src/pkg/exp/norm/normalize.go +++ b/src/pkg/exp/norm/normalize.go @@ -379,12 +379,6 @@ func lastBoundary(fd *formInfo, b []byte) int { return i } -// LastBoundaryInString returns the position i of the last boundary in s -// or -1 if s contains no boundary. -func (f Form) LastBoundaryInString(s string) int { - panic("not implemented") -} - // decomposeSegment scans the first segment in src into rb. // It returns the number of bytes consumed from src. // TODO(mpvl): consider inserting U+034f (Combining Grapheme Joiner)