LibCompress/Deflate: Remove three useless FIXMEs

This commit is contained in:
Lucas CHOLLET 2024-01-12 22:28:21 -05:00 committed by Jelle Raaijmakers
parent 830e6472e6
commit a3d48319fe

View file

@ -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;