Remove dead code from PipelineWriter.
Clean up PipelineWriter.