LibIPC: Remove IPC::Encoder overloads for size_t

Clients of this code should use explicitly-sized types instead.
This commit is contained in:
Andreas Kling 2020-02-05 20:37:51 +01:00
parent d264e8fcc5
commit 6d1740e4be
Notes: sideshowbarker 2024-07-19 09:35:44 +09:00

View file

@ -118,26 +118,6 @@ public:
return *this;
}
Encoder& operator<<(size_t value)
{
if constexpr (sizeof(size_t) == 4)
return *this << (u32)value;
else if constexpr (sizeof(size_t) == 8)
return *this << (u64)value;
ASSERT_NOT_REACHED();
}
#ifndef __i386__
Encoder& operator<<(ssize_t value)
{
if constexpr (sizeof(ssize_t) == 4)
return *this << (i32)value;
else if constexpr (sizeof(ssize_t) == 8)
return *this << (i64)value;
ASSERT_NOT_REACHED();
}
#endif
Encoder& operator<<(float value)
{
union bits {