LibDiff: Remove a bunch of unused code

We have no need to support normal or context diffs in ladybird,
as well as the ability to parse and apply patches.
This commit is contained in:
Shannon Booth 2025-05-13 19:28:28 +12:00 committed by Andreas Kling
commit 41b060be81
Notes: github-actions[bot] 2025-05-13 10:47:39 +00:00
8 changed files with 0 additions and 657 deletions

View file

@ -13,8 +13,6 @@
namespace Diff {
ByteString generate_only_additions(StringView);
enum class ColorOutput {
Yes,
No,
@ -23,8 +21,4 @@ enum class ColorOutput {
ErrorOr<void> write_unified(Hunk const& hunk, Stream& stream, ColorOutput color_output = ColorOutput::No);
ErrorOr<void> write_unified_header(StringView old_path, StringView new_path, Stream& stream);
ErrorOr<void> write_normal(Hunk const& hunk, Stream& stream, ColorOutput color_output = ColorOutput::No);
ErrorOr<void> write_context(Hunk const& hunk, Stream& stream, ColorOutput color_output = ColorOutput::No);
ErrorOr<void> write_context_header(StringView old_path, StringView new_path, Stream& stream);
}