Remove unused function
authorfatbob313 <martin@fatbob.nu>
Sun, 14 Feb 2010 21:24:36 +0000 (21:24 +0000)
committerfatbob313 <martin@fatbob.nu>
Sun, 14 Feb 2010 21:24:36 +0000 (21:24 +0000)
src/messages.c

index 06a72eb4fae8c696fb1493594a9b0077b3835c0e..7b99ce0c9e477ccc57bb20f23efcff4ae38d6f35 100644 (file)
@@ -41,7 +41,6 @@
 
 #define PREAMBLE_SIZE 6
 
-static void dumpmsg(uint8_t *data, int size);
 static message_t *Msg_create_nopayload(messageType_t messageType);
 
 static void Msg_addPreamble(uint8_t *buffer, uint16_t type, uint32_t len)
@@ -488,23 +487,6 @@ void Msg_free(message_t *msg)
        free(msg);
 }
 
-void dumpmsg(uint8_t *data, int size)
-{
-       int i, r = 0, offset = 0;
-       char buf[512];
-       
-       while (r * 8 + i < size) {
-               for (i = 0; i < 8 && r * 8 + i < size; i++) {
-                       offset += sprintf(buf + offset, "%x ", data[r * 8 + i]);
-               }
-               sprintf(buf + offset, "\n");
-               printf(buf);
-               offset = 0;
-               r++;
-               i = 0;
-       } 
-}
-
 message_t *Msg_CreateVoiceMsg(uint8_t *data, int size)
 {
        message_t *msg = NULL;