1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:57:44 +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:
Zaggy1024 2023-08-26 02:12:03 -05:00 committed by Tim Flynn
parent c1d4ff919a
commit b33a71a35e
2 changed files with 23 additions and 28 deletions

View file

@ -72,7 +72,6 @@ private:
int m_total_samples { 0 };
size_t m_loaded_samples { 0 };
OwnPtr<BigEndianInputBitStream> m_bitstream;
AllocatingMemoryStream m_bit_reservoir;
};