internal: add RemoveBuildContexts
This was added in CL 313596, but CL 313598 was merged earlier.
Trust: Julie Qiu
Run-TryBot: Julie Qiu
TryBot-Result: kokoro
@@ -123,3 +123,9 @@ func (us *UnitSymbol) SupportsBuild(build BuildContext) bool {
func (us *UnitSymbol) InAll() bool {
return len(us.builds) == len(BuildContexts)
}
+
+// RemoveBuildContexts removes all of the build contexts associated with this
+// unit symbol.
+func (us *UnitSymbol) RemoveBuildContexts() {
+ us.builds = map[BuildContext]bool{}
+}
