]> Cypherpunks repositories - gostls13.git/commit
cmd/api: remove unused functionality
authorDmitri Shuralyov <dmitshur@golang.org>
Wed, 26 Apr 2023 20:41:41 +0000 (16:41 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 27 Apr 2023 14:07:10 +0000 (14:07 +0000)
commite8c8b79f000515e086012df632f01fc0ec21076b
tree58fb99c578134ab813f8e85e28e2c9ca6c402076
parent0972096c5c2facec2d5c6db08a2df32684f41caa
cmd/api: remove unused functionality

We no longer use the optional parameter to compareAPI.
We now always set allowAdd to false.
(Except in tests, making them less useful than they could be.)
Flags and parsing their value are no more.

Remove all the unused functionality and update test cases so they're
closer to what the API checker does when it runs for real. Order the
features, required, exception variables and fields more consistently.

For #43956.

Change-Id: Iaa4656a89a3fca3129742165a448d385e55e4a98
Reviewed-on: https://go-review.googlesource.com/c/go/+/489436
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/api/api.go
src/cmd/api/api_test.go