The following commit has been merged in the master branch: commit 1102e51addc682c9f116a8458dc44c6b278c5649 Author: simon simon@45894c77-fb22-0410-b583-ff6e7d5dbf6c Date: Sat Nov 7 11:44:54 2009 +0000
remove dead code
git-svn-id: http://downloads.open-mesh.net/svn/batman/trunk/batman-adv-kernelland@1465 45894c77-fb22-0410-b583-ff6e7d5dbf6c
diff --git a/bitarray.c b/bitarray.c index 32a16e2..3c67f5f 100644 --- a/bitarray.c +++ b/bitarray.c @@ -23,15 +23,6 @@ #include "bitarray.h" #include "log.h"
-/* clear the bits */ -void bit_init(TYPE_OF_WORD *seq_bits) -{ - int i; - - for (i = 0; i < NUM_WORDS; i++) - seq_bits[i] = 0; -} - /* returns true if the corresponding bit in the given seq_bits indicates true * and curr_seqno is within range of last_seqno */ uint8_t get_bit_status(TYPE_OF_WORD *seq_bits, uint16_t last_seqno, @@ -55,24 +46,6 @@ uint8_t get_bit_status(TYPE_OF_WORD *seq_bits, uint16_t last_seqno, } }
-/* print the packet array, for debugging purposes */ -static char bit_string[130]; -char *bit_print(TYPE_OF_WORD *seq_bits) -{ - int i, j, k = 0, b = 0; - - for (i = 0; i < NUM_WORDS; i++) { - for (j = 0; j < WORD_BIT_SIZE; j++) { - bit_string[k++] = ((seq_bits[i]>>j)%2 ? '1' : '0'); - if (++b == TQ_LOCAL_WINDOW_SIZE) - bit_string[k++] = '|'; - } - bit_string[k++] = ' '; - } - bit_string[k++] = '\0'; - return bit_string; -} - /* turn corresponding bit on, so we can remember that we got the packet */ void bit_mark(TYPE_OF_WORD *seq_bits, int32_t n) {