This commit is contained in:
Bernhard Boser 2020-11-12 13:21:59 -08:00 committed by Scott Shawcroft
parent 44bc75af37
commit b805bf8a62
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA
1 changed files with 0 additions and 21 deletions

View File

@ -67,13 +67,6 @@ STATIC void read(msgpack_stream_t *s, void *buf, mp_uint_t size) {
} }
} }
/*
STATIC uint32_t read_bytes(msgpack_stream_t *s, mp_uint_t n_bytes) {
uint32_t res = 0;
read(s, &res, n_bytes);
return res;
}
*/
STATIC uint8_t read1(msgpack_stream_t *s) { STATIC uint8_t read1(msgpack_stream_t *s) {
uint8_t res = 0; uint8_t res = 0;
read(s, &res, 1); read(s, &res, 1);
@ -96,20 +89,6 @@ STATIC uint32_t read4(msgpack_stream_t *s) {
return res; return res;
} }
/*
STATIC size_t read_size(msgpack_stream_t *s, uint8_t len_index) {
size_t n_bytes = 4;
switch (len_index) {
case 0: n_bytes = 1; break;
case 1: n_bytes = 2; break;
case 2: n_bytes = 4; break;
}
size_t res = 0;
read(s, &res, n_bytes);
return res;
}
*/
STATIC size_t read_size(msgpack_stream_t *s, uint8_t len_index) { STATIC size_t read_size(msgpack_stream_t *s, uint8_t len_index) {
size_t res; size_t res;
switch (len_index) { switch (len_index) {