]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: simplify work list functions
authorAustin Clements <austin@google.com>
Fri, 12 May 2023 19:04:21 +0000 (15:04 -0400)
committerAustin Clements <austin@google.com>
Wed, 17 May 2023 18:18:33 +0000 (18:18 +0000)
commit3d46eedbc97ddb25384307dea063021ba7b59c06
tree51ab4a3848f566d7146c5ee4db14a55b2a61c41a
parent6a41be228e1f59dae6001e058fd1b27c79592777
cmd/dist: simplify work list functions

There are no uses of addCmd, so delete it. The only use of bgDirCmd is
dirCmd, so inline it. Now the only function that interacts with the
work queue is registerTest and dist's "background commands" are used
exclusively in goTest.bgCommand and registerTest (which calls
goTest.bgCommand).

For #37486.

Change-Id: Iebbb24cf9dbee45f3975fe9504d858493e1cd947
Reviewed-on: https://go-review.googlesource.com/c/go/+/494956
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/dist/test.go