]> Cypherpunks repositories - gostls13.git/commitdiff
strings: delete unused constant
authorCaleb Spare <cespare@gmail.com>
Fri, 8 Dec 2017 10:11:05 +0000 (02:11 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 8 Dec 2017 13:48:05 +0000 (13:48 +0000)
Change-Id: I235c5bc7ce598047eccc1518984dd27f568046a2
Reviewed-on: https://go-review.googlesource.com/82776
Run-TryBot: Caleb Spare <cespare@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/strings/builder.go

index 594f3db5132bd5c718135cbff75e4b7a31e9a03c..09ebb3d91bd163ae1e27831738881b2a956515c4 100644 (file)
@@ -28,8 +28,6 @@ func (b *Builder) Len() int { return len(b.buf) }
 // Reset resets the Builder to be empty.
 func (b *Builder) Reset() { b.buf = nil }
 
-const maxInt = int(^uint(0) >> 1)
-
 // grow copies the buffer to a new, larger buffer so that there are at least n
 // bytes of capacity beyond len(b.buf).
 func (b *Builder) grow(n int) {