Remove dead code in line_ending.{h,cc}

* Remove the CString-version of NormalizeLineEndingsToCRLF()
  It's not used.

* Remove CStringBuffer.
  Only the CString NormalizeLineEndingsToCRLF() used it.

* Fold VectorCharAppendBuffer into InternalNormalizeLineEndingsToCRLF()
  OutputBuffer abstraction isn't necessary due to the removal of
  CStringBuffer, and InternalNormalizeLineEndingsToCRLF() is the only
  user of OutputBuffer.

* Wrap InternalNormalizeLineEndingsToCRLF() with OS_WIN.
  It is used only on Windows.

This CL has no behavior changes.

Change-Id: I01d6177601f8be5fd5137f1554e7824080422d8f
Reviewed-by: Yoshifumi Inoue <>
Commit-Queue: Yoshifumi Inoue <>
Cr-Commit-Position: refs/heads/master@{#561776}
2 files changed