mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 11:06:10 +00:00
LibCompress/Deflate: Remove three useless FIXMEs
This commit is contained in:
parent
830e6472e6
commit
a3d48319fe
Notes:
sideshowbarker
2024-07-17 03:05:16 +09:00
Author: https://github.com/LucasChollet
Commit: a3d48319fe
Pull-request: https://github.com/SerenityOS/serenity/pull/22756
Reviewed-by: https://github.com/gmta ✅
1 changed files with 0 additions and 6 deletions
|
@ -51,8 +51,6 @@ CanonicalCode const& CanonicalCode::fixed_distance_codes()
|
|||
|
||||
ErrorOr<CanonicalCode> CanonicalCode::from_bytes(ReadonlyBytes bytes)
|
||||
{
|
||||
// FIXME: I can't quite follow the algorithm here, but it seems to work.
|
||||
|
||||
CanonicalCode code;
|
||||
|
||||
auto non_zero_symbols = 0;
|
||||
|
@ -381,8 +379,6 @@ ErrorOr<ByteBuffer> DeflateDecompressor::decompress_all(ReadonlyBytes bytes)
|
|||
|
||||
ErrorOr<u32> DeflateDecompressor::decode_length(u32 symbol)
|
||||
{
|
||||
// FIXME: I can't quite follow the algorithm here, but it seems to work.
|
||||
|
||||
if (symbol <= 264)
|
||||
return symbol - 254;
|
||||
|
||||
|
@ -399,8 +395,6 @@ ErrorOr<u32> DeflateDecompressor::decode_length(u32 symbol)
|
|||
|
||||
ErrorOr<u32> DeflateDecompressor::decode_distance(u32 symbol)
|
||||
{
|
||||
// FIXME: I can't quite follow the algorithm here, but it seems to work.
|
||||
|
||||
if (symbol <= 3)
|
||||
return symbol + 1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue