aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-11-05 20:46:04 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-11-05 20:46:04 +0000
commit4a66bbf31f6d272b76b3a06dcadea16226cc4e2e (patch)
treef7a3c93e65bd133ee87cc1205b8ee258c6623444 /src
parentbfaeaf104997e6a3f9be262caf6e43ae54314d5c (diff)
downloadgnunet-4a66bbf31f6d272b76b3a06dcadea16226cc4e2e.tar.gz
gnunet-4a66bbf31f6d272b76b3a06dcadea16226cc4e2e.zip
dead code
Diffstat (limited to 'src')
-rw-r--r--src/stream/perf_stream_api.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/stream/perf_stream_api.c b/src/stream/perf_stream_api.c
index 43696ce1c..681808b38 100644
--- a/src/stream/perf_stream_api.c
+++ b/src/stream/perf_stream_api.c
@@ -599,26 +599,9 @@ input_processor (void *cls, enum GNUNET_STREAM_Status status,
599 reset_read = GNUNET_NO; 599 reset_read = GNUNET_NO;
600 } 600 }
601 GNUNET_assert ((pdata->bytes_read + size) <= DATA_SIZE); 601 GNUNET_assert ((pdata->bytes_read + size) <= DATA_SIZE);
602 /* if (pdata->bytes_read + size > DATA_SIZE) */
603 /* { */
604 /* size_t split_size; */
605
606 /* split_size = DATA_SIZE - pdata->bytes_read; */
607 /* GNUNET_assert (0 == memcmp (((void *) data) + pdata->bytes_read, */
608 /* input_data, split_size)); */
609 /* GNUNET_assert (0 == memcmp (((void *) data), input_data + split_size, */
610 /* size - split_size)); */
611 /* pdata->bytes_read = size - split_size; */
612 /* printf ("?"); */
613 /* } */
614 /* else */
615 /* { */
616 GNUNET_assert (0 == memcmp (((void *)data ) + pdata->bytes_read, 602 GNUNET_assert (0 == memcmp (((void *)data ) + pdata->bytes_read,
617 input_data, size)); 603 input_data, size));
618 pdata->bytes_read += size; 604 pdata->bytes_read += size;
619 /* } */
620 /* if ((64 * payload_size[payload_size_index]) == pdata->bytes_read) */
621 /* pdata->bytes_read = 0; */
622 pdata->packets_read += (size + payload_size[payload_size_index] - 1) 605 pdata->packets_read += (size + payload_size[payload_size_index] - 1)
623 / payload_size[payload_size_index]; 606 / payload_size[payload_size_index];
624 if (pdata->packets_read < MAX_PACKETS) 607 if (pdata->packets_read < MAX_PACKETS)