Skip to content

Commit 8f262ba

Browse files
committed
internal: add RemoveBuildContexts
This was added in CL 313596, but CL 313598 was merged earlier. Change-Id: Ia60ce11098347ab5dcb873770a131edd7a495209 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/314689 Trust: Julie Qiu <[email protected]> Run-TryBot: Julie Qiu <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]> TryBot-Result: kokoro <[email protected]>
1 parent 459cbb3 commit 8f262ba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/symbol.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,9 @@ func (us *UnitSymbol) SupportsBuild(build BuildContext) bool {
123123
func (us *UnitSymbol) InAll() bool {
124124
return len(us.builds) == len(BuildContexts)
125125
}
126+
127+
// RemoveBuildContexts removes all of the build contexts associated with this
128+
// unit symbol.
129+
func (us *UnitSymbol) RemoveBuildContexts() {
130+
us.builds = map[BuildContext]bool{}
131+
}

0 commit comments

Comments
 (0)