diff options
| author | Bernhard Boser <boser@server.home> | 2020-11-12 13:21:59 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2020-12-01 18:38:47 -0800 |
| commit | b805bf8a6293ff4c6f8550946403e509a0aa9e37 (patch) | |
| tree | 54b4882bc3aa5374f09d31cd689c118d7e97b4fd /shared-module/msgpack | |
| parent | 44bc75af37a464eb6e5ba26bab19f2150d58044d (diff) | |
cleanup
Diffstat (limited to 'shared-module/msgpack')
| -rw-r--r-- | shared-module/msgpack/__init__.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/shared-module/msgpack/__init__.c b/shared-module/msgpack/__init__.c index 505c1c969..a825bb0f3 100644 --- a/shared-module/msgpack/__init__.c +++ b/shared-module/msgpack/__init__.c @@ -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) { uint8_t res = 0; read(s, &res, 1); @@ -96,20 +89,6 @@ STATIC uint32_t read4(msgpack_stream_t *s) { 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) { size_t res; switch (len_index) { |
