From 9a8da9d4999f53fa4487cf3e36c3e5bc59fd6fee Mon Sep 17 00:00:00 2001 From: Marcel van Lohuizen Date: Wed, 5 Oct 2011 14:36:02 -0700 Subject: [PATCH] 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 --- src/pkg/exp/norm/normalize.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/pkg/exp/norm/normalize.go b/src/pkg/exp/norm/normalize.go index f3d4e50b09e..391bc4184f2 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)