mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +03:00
AK: Remove unused network ordered 'address' variable
This commit is contained in:
parent
e74e8381d5
commit
0ebcc99e12
Notes:
sideshowbarker
2024-07-17 01:46:43 +09:00
Author: https://github.com/ImanSeyed 🔰 Commit: https://github.com/SerenityOS/serenity/commit/0ebcc99e12 Pull-request: https://github.com/SerenityOS/serenity/pull/17244
@ -140,7 +140,6 @@ public:
|
||||
private:
|
||||
constexpr u32 octet(const SubnetClass subnet) const
|
||||
{
|
||||
NetworkOrdered<u32> address(m_data);
|
||||
constexpr auto bits_per_byte = 8;
|
||||
auto const bits_to_shift = bits_per_byte * int(subnet);
|
||||
return (m_data >> bits_to_shift) & 0x0000'00FF;
|
||||
|
Loading…
Reference in New Issue
Block a user