util/ByteOrder: remove unnecessary operator=

The compiler can just use the uint32_t constructor instead.  This was
redundant code.
This commit is contained in:
Max Kellermann 2023-01-28 07:47:44 +01:00
parent c30c293d6f
commit ebf65572dd

View File

@ -329,14 +329,6 @@ public:
(uint32_t(c) << 8) | uint32_t(d); (uint32_t(c) << 8) | uint32_t(d);
} }
PackedBE32 &operator=(uint32_t new_value) noexcept {
d = uint8_t(new_value);
c = uint8_t(new_value >> 8);
b = uint8_t(new_value >> 16);
a = uint8_t(new_value >> 24);
return *this;
}
/** /**
* Reads the raw, big-endian value. * Reads the raw, big-endian value.
*/ */