From 7abd9c81c6c2fe0d1e295c50385f3a5bb0bd2914 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Tue, 11 Aug 2020 00:12:31 +0200 Subject: [PATCH] LibCompress: Mark compilation-unit-only functions as static This enables a nice warning in case a function becomes dead code. --- Libraries/LibCompress/Deflate.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Libraries/LibCompress/Deflate.cpp b/Libraries/LibCompress/Deflate.cpp index 35880cf15e..9bd05f00da 100644 --- a/Libraries/LibCompress/Deflate.cpp +++ b/Libraries/LibCompress/Deflate.cpp @@ -308,7 +308,6 @@ i8 BitStreamReader::read() return (m_current_byte >> (7 - m_remaining_bits)) & 1; } - i8 BitStreamReader::read_byte() { m_current_byte = 0; @@ -320,7 +319,6 @@ i8 BitStreamReader::read_byte() return m_data.at(m_data_index++); } - u8 BitStreamReader::get_bit_byte_offset() { return (8 - m_remaining_bits) % 8; @@ -392,7 +390,7 @@ CanonicalCode::CanonicalCode(Vector codes) } } -i32 binary_search(Vector& heystack, u32 needle) +static i32 binary_search(Vector& heystack, u32 needle) { i32 low = 0; i32 high = heystack.size();