summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick ODell <nickodell@gmail.com>2013-08-01 16:19:01 -0600
committerNick ODell <nickodell@gmail.com>2013-08-01 16:19:01 -0600
commit67b7523b1876481fe4213ea301a7896e5af9fcb0 (patch)
treee87f0626e9e73fb645e8554bec6c35da684da158
parentff2e04b107587e69096e1523bcf66b2f45cafd7a (diff)
Remove code that did nothing.
-rw-r--r--testing/nTox.c11
1 files changed, 0 insertions, 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)
318 318
319void print_message(int friendnumber, uint8_t * string, uint16_t length) 319void print_message(int friendnumber, uint8_t * string, uint16_t length)
320{ 320{
321 char name[MAX_NAME_LENGTH];
322 getname(friendnumber, (uint8_t*)name);
323 char msg[100+length+strlen(name)+1];
324 time_t rawtime;
325 struct tm * timeinfo;
326 time ( &rawtime );
327 timeinfo = localtime ( &rawtime );
328 char* temp = asctime(timeinfo);
329 size_t len = strlen(temp);
330 temp[len-1] = '\0';
331 sprintf(msg, "[%d] %s <%s> %s", friendnumber, temp, name, string); // timestamp
332 new_lines(format_message((char*)string, friendnumber)); 321 new_lines(format_message((char*)string, friendnumber));
333} 322}
334 323