mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-23 01:38:56 +00:00
LibAudio: Remove unnecessary m_bitstream
field from MP3Loader
We can just create a `BigEndianInputBitStream` where it is needed instead of storing one in the class. After making `read_header()` static, the only other user of the field was `read_size_information()`, so let's do that there and then remove the field.
This commit is contained in:
parent
c1d4ff919a
commit
b33a71a35e
Notes:
sideshowbarker
2024-07-16 22:26:05 +09:00
Author: https://github.com/Zaggy1024
Commit: b33a71a35e
Pull-request: https://github.com/SerenityOS/serenity/pull/20783
Reviewed-by: https://github.com/trflynn89
2 changed files with 23 additions and 28 deletions
|
@ -72,7 +72,6 @@ private:
|
|||
int m_total_samples { 0 };
|
||||
size_t m_loaded_samples { 0 };
|
||||
|
||||
OwnPtr<BigEndianInputBitStream> m_bitstream;
|
||||
AllocatingMemoryStream m_bit_reservoir;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue