]> Cypherpunks repositories - gostls13.git/commit
fmt: remove stopAtNewline unused parameter
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 2 Aug 2017 22:54:14 +0000 (07:54 +0900)
committerIan Lance Taylor <iant@golang.org>
Fri, 11 Aug 2017 04:56:58 +0000 (04:56 +0000)
commit320b6fef1840c14778587bfd5aeadd1f48bb5ed7
tree3325eea1fd9c73593bfa569cdaea77b96c44a6ae
parent6bf220803255f6193366bb5c3e7eba48affa610b
fmt: remove stopAtNewline unused parameter

This parameter is always false. The last occurrence of s.skipSpace(true)
was removed in mid-2015.

While at it, merge skipSpace into SkipSpace, since the latter was just a
wrapper without the parameter.

Found with github.com/mvdan/unparam.

Change-Id: I884ea4036f41234a898d6aeee515211c49b0b435
Reviewed-on: https://go-review.googlesource.com/52890
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Avelino <t@avelino.xxx>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
src/fmt/scan.go