mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +00:00
LibCompress: Mark compilation-unit-only functions as static
This enables a nice warning in case a function becomes dead code.
This commit is contained in:
parent
f7fe63c6b0
commit
7abd9c81c6
Notes:
sideshowbarker
2024-07-19 03:42:04 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/7abd9c81c6c Pull-request: https://github.com/SerenityOS/serenity/pull/3096 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/stelar7
1 changed files with 1 additions and 3 deletions
|
@ -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<u8> codes)
|
|||
}
|
||||
}
|
||||
|
||||
i32 binary_search(Vector<u32>& heystack, u32 needle)
|
||||
static i32 binary_search(Vector<u32>& heystack, u32 needle)
|
||||
{
|
||||
i32 low = 0;
|
||||
i32 high = heystack.size();
|
||||
|
|
Loading…
Add table
Reference in a new issue