// RemoveOutputChange searches the set of output value changes for one matching
// the given address, and removes it from the set if it exists.
RemoveOutputChange searches the set of output value changes for one matching
the given address, and removes it from the set if it exists.
// RemoveOutputChange searches the set of output value changes for one matching // the given address and removes it from the set if it exists .
func (cs *ChangesSync) RemoveOutputChange(addr addrs.AbsOutputValue) {
	if cs == nil {
		panic("RemoveOutputChange on nil ChangesSync")
	}
	cs.lock.Lock()
	defer cs.lock.Unlock()
	addrStr := addr.String()
	for i, o := range cs.changes.Outputs {
		if o.Addr.String() != addrStr {
			continue
		}
		copy(cs.changes.Outputs[i:], cs.changes.Outputs[i+1:])
		cs.changes.Outputs = cs.changes.Outputs[:len(cs.changes.Outputs)-1]
		return
	}
}
func ( cs * ChangesSync ) RemoveOutputChange ( addr addrs . AbsOutputValue ) { if cs == nil { panic ( " " ) } cs . lock . Lock ( ) defer cs . lock . Unlock ( ) addrStr := addr . String ( ) for i , o := range cs . changes . Outputs { if o . Addr . String ( ) != addrStr { continue } copy ( cs . changes . Outputs [ i : ] , cs . changes . Outputs [ i + 1 : ] ) cs . changes . Outputs = cs . changes . Outputs [ : len ( cs . changes . Outputs ) - 1 ] return } }
RemoveOutputChange searches the set of output value changes for one matching
the given address, and removes it from the set if it exists.
RemoveOutputChange searches the set of output value changes for one matching the given address and removes it from the set if it exists .