summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2023-03-15 11:18:49 +0100
committerLinus Groh <mail@linusgroh.de>2023-03-15 11:02:41 +0000
commit6a8c8aae9bb023e35c92d90f4d091074d8f52b69 (patch)
tree109f48db05687c8dfb689b1912a89a94565d1aaa /Userland/Libraries/LibGfx
parent76d8e5d866eb8a775915cd8748a573a0bdece9eb (diff)
downloadserenity-6a8c8aae9bb023e35c92d90f4d091074d8f52b69.zip
LibGfx: Remove unused PNGChunk::add_as_little_endian() method
PNG uses big-endian data internally.
Diffstat (limited to 'Userland/Libraries/LibGfx')
-rw-r--r--Userland/Libraries/LibGfx/PNGWriter.cpp11
1 files changed, 0 insertions, 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<typename T>
ErrorOr<void> add_as_big_endian(T);
- template<typename T>
- ErrorOr<void> add_as_little_endian(T);
-
ErrorOr<void> add_u8(u8);
ErrorOr<void> compress_and_add(ReadonlyBytes);
@@ -96,14 +93,6 @@ ErrorOr<void> PNGChunk::add(ReadonlyBytes bytes)
}
template<typename T>
-ErrorOr<void> PNGChunk::add_as_little_endian(T data)
-{
- auto data_out = AK::convert_between_host_and_little_endian(data);
- TRY(add(data_out));
- return {};
-}
-
-template<typename T>
ErrorOr<void> PNGChunk::add_as_big_endian(T data)
{
auto data_out = AK::convert_between_host_and_big_endian(data);