Skip to content

Commit ae5117d

Browse files
author
Bernhard Boser
committed
cleanup
1 parent c38f615 commit ae5117d

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

shared-module/msgpack/__init__.c

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,6 @@ STATIC void read(msgpack_stream_t *s, void *buf, mp_uint_t size) {
6767
}
6868
}
6969

70-
/*
71-
STATIC uint32_t read_bytes(msgpack_stream_t *s, mp_uint_t n_bytes) {
72-
uint32_t res = 0;
73-
read(s, &res, n_bytes);
74-
return res;
75-
}
76-
*/
7770
STATIC uint8_t read1(msgpack_stream_t *s) {
7871
uint8_t res = 0;
7972
read(s, &res, 1);
@@ -96,20 +89,6 @@ STATIC uint32_t read4(msgpack_stream_t *s) {
9689
return res;
9790
}
9891

99-
/*
100-
STATIC size_t read_size(msgpack_stream_t *s, uint8_t len_index) {
101-
size_t n_bytes = 4;
102-
switch (len_index) {
103-
case 0: n_bytes = 1; break;
104-
case 1: n_bytes = 2; break;
105-
case 2: n_bytes = 4; break;
106-
}
107-
size_t res = 0;
108-
read(s, &res, n_bytes);
109-
return res;
110-
}
111-
*/
112-
11392
STATIC size_t read_size(msgpack_stream_t *s, uint8_t len_index) {
11493
size_t res;
11594
switch (len_index) {

0 commit comments

Comments
 (0)