diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-05 20:37:51 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-05 20:37:51 +0100 |
commit | 6d1740e4be041e7f68c8e05f4f0cbcc7f91ae22b (patch) | |
tree | f763957a3f36da77cbe8a384d719eac3476224e5 /Libraries/LibIPC | |
parent | d264e8fcc599204aa5f8ee9aa00d52ec53b7215b (diff) | |
download | serenity-6d1740e4be041e7f68c8e05f4f0cbcc7f91ae22b.zip |
LibIPC: Remove IPC::Encoder overloads for size_t
Clients of this code should use explicitly-sized types instead.
Diffstat (limited to 'Libraries/LibIPC')
-rw-r--r-- | Libraries/LibIPC/IEncoder.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Libraries/LibIPC/IEncoder.h b/Libraries/LibIPC/IEncoder.h index a99c842f58..2057931294 100644 --- a/Libraries/LibIPC/IEncoder.h +++ b/Libraries/LibIPC/IEncoder.h @@ -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 { |