From 6a8c8aae9bb023e35c92d90f4d091074d8f52b69 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 15 Mar 2023 11:18:49 +0100 Subject: [PATCH] LibGfx: Remove unused PNGChunk::add_as_little_endian() method PNG uses big-endian data internally. --- Userland/Libraries/LibGfx/PNGWriter.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Userland/Libraries/LibGfx/PNGWriter.cpp b/Userland/Libraries/LibGfx/PNGWriter.cpp index efd47d83f0..07f34076d9 100644 --- a/Userland/Libraries/LibGfx/PNGWriter.cpp +++ b/Userland/Libraries/LibGfx/PNGWriter.cpp @@ -31,9 +31,6 @@ public: template ErrorOr add_as_big_endian(T); - template - ErrorOr add_as_little_endian(T); - ErrorOr add_u8(u8); ErrorOr compress_and_add(ReadonlyBytes); @@ -95,14 +92,6 @@ ErrorOr PNGChunk::add(ReadonlyBytes bytes) return {}; } -template -ErrorOr PNGChunk::add_as_little_endian(T data) -{ - auto data_out = AK::convert_between_host_and_little_endian(data); - TRY(add(data_out)); - return {}; -} - template ErrorOr PNGChunk::add_as_big_endian(T data) {