diff options
Diffstat (limited to 'tests/test_decode1.c')
-rw-r--r-- | tests/test_decode1.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/test_decode1.c b/tests/test_decode1.c index 20ea65e4..8623fbdb 100644 --- a/tests/test_decode1.c +++ b/tests/test_decode1.c @@ -90,22 +90,6 @@ bool print_person(pb_istream_t *stream) return true; } -bool my_read(pb_istream_t *stream, char *buf, size_t count) -{ - char *source = (char*)stream->state; - - if (!stream->bytes_left) - return false; - - if (buf != NULL) - { - memcpy(buf, source, count); - } - - stream->state = source + count; - return true; -} - int main() { uint8_t buffer[512]; |