From 67b7523b1876481fe4213ea301a7896e5af9fcb0 Mon Sep 17 00:00:00 2001 From: Nick ODell Date: Thu, 1 Aug 2013 16:19:01 -0600 Subject: Remove code that did nothing. --- testing/nTox.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/testing/nTox.c b/testing/nTox.c index a2d8ade5..0020e80e 100644 --- a/testing/nTox.c +++ b/testing/nTox.c @@ -318,17 +318,6 @@ void print_request(uint8_t *public_key, uint8_t *data, uint16_t length) void print_message(int friendnumber, uint8_t * string, uint16_t length) { - char name[MAX_NAME_LENGTH]; - getname(friendnumber, (uint8_t*)name); - char msg[100+length+strlen(name)+1]; - time_t rawtime; - struct tm * timeinfo; - time ( &rawtime ); - timeinfo = localtime ( &rawtime ); - char* temp = asctime(timeinfo); - size_t len = strlen(temp); - temp[len-1] = '\0'; - sprintf(msg, "[%d] %s <%s> %s", friendnumber, temp, name, string); // timestamp new_lines(format_message((char*)string, friendnumber)); } -- cgit v1.2.3