code: public void removeSink(VehicleDataSink sink) {
          if(sink != null) {
              mSinks.remove(sink);
              sink.stop();
          }
      }
docs: Remove a previously added sink from the pipeline.
  
  Once removed, the sink will no longer receive any new messages from
  the pipeline's sources. The sink's {@link VehicleDataSink#stop()} method
  is also called.
  
  @param sink if the value is null, it is ignored.