From a3d48319fe6e155143b3cac53df245d3c0f1f949 Mon Sep 17 00:00:00 2001 From: Lucas CHOLLET Date: Fri, 12 Jan 2024 22:28:21 -0500 Subject: [PATCH] LibCompress/Deflate: Remove three useless FIXMEs --- Userland/Libraries/LibCompress/Deflate.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Userland/Libraries/LibCompress/Deflate.cpp b/Userland/Libraries/LibCompress/Deflate.cpp index c3a95a30df..d5a2ef35b4 100644 --- a/Userland/Libraries/LibCompress/Deflate.cpp +++ b/Userland/Libraries/LibCompress/Deflate.cpp @@ -51,8 +51,6 @@ CanonicalCode const& CanonicalCode::fixed_distance_codes() ErrorOr 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 DeflateDecompressor::decompress_all(ReadonlyBytes bytes) ErrorOr 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 DeflateDecompressor::decode_length(u32 symbol) ErrorOr 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;