mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
LibCompress/Deflate: Remove three useless FIXMEs
This commit is contained in:
parent
830e6472e6
commit
a3d48319fe
|
@ -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…
Reference in a new issue