code: func (s *streamState) removeStream(name string) bundlerStream {
  	if si, idx := s.streamIndex(name); si != nil {
  		heap.Remove(s, idx)
  		return si
  	}
  	return nil
  }
docs: // removeStream removes a stream from the stream state.