Remove enumeration function from ::wire reading and writing (#84)

This commit is contained in:
Lee *!* Clagett
2023-12-05 20:24:22 -05:00
committed by Lee *!* Clagett
parent 9f98d2a8c9
commit 6fa2d6799b
11 changed files with 5 additions and 55 deletions

View File

@@ -428,14 +428,6 @@ namespace wire
std::memcpy(dest.data(), bytes.data(), dest.size());
}
std::size_t msgpack_reader::enumeration(const epee::span<char const* const> enums)
{
const std::uintmax_t value = unsigned_integer();
if (enums.size() < value)
WIRE_DLOG_THROW(error::schema::enumeration, value << " is not a valid enum");
return std::size_t(value);
}
std::size_t msgpack_reader::start_array()
{
const std::size_t upcoming =