summaryrefslogtreecommitdiffstats
path: root/tests/test_decode2.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_decode2.c')
-rw-r--r--tests/test_decode2.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/tests/test_decode2.c b/tests/test_decode2.c
index 762b2b3f..2142977e 100644
--- a/tests/test_decode2.c
+++ b/tests/test_decode2.c
@@ -59,13 +59,6 @@ bool callback(pb_istream_t *stream, uint8_t *buf, size_t count)
FILE *file = (FILE*)stream->state;
bool status;
- if (buf == NULL)
- {
- /* Skipping data */
- while (count-- && fgetc(file) != EOF);
- return count == 0;
- }
-
status = (fread(buf, 1, count, file) == count);
if (feof(file))