mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:17:45 +00:00
AK+LibJS: Remove OFFSET_OF and its users
With the LibJS JIT removed, let's not expose pointers to internal members.
This commit is contained in:
parent
4646a87eba
commit
d878975f95
14 changed files with 0 additions and 53 deletions
|
@ -318,9 +318,6 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
static FlatPtr value_offset() { return OFFSET_OF(Optional, m_storage); }
|
||||
static FlatPtr has_value_offset() { return OFFSET_OF(Optional, m_has_value); }
|
||||
|
||||
private:
|
||||
alignas(T) u8 m_storage[sizeof(T)];
|
||||
bool m_has_value { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue