summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorSean Qureshi <stqism@risingstormgames.com>2013-08-03 04:10:47 -0700
committerSean Qureshi <stqism@risingstormgames.com>2013-08-03 04:10:47 -0700
commit86d7734efea1e7f345a9635f78bbf055116f8d84 (patch)
treec0c2867af529e6eeed7d00ae6795b09200078110 /testing
parent6cfdf68940127b74da331a7b5465dfdcedc055db (diff)
Removed some useless code
Diffstat (limited to 'testing')
-rw-r--r--testing/toxic/chat.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/testing/toxic/chat.c b/testing/toxic/chat.c
index b835cf2d..19f5c972 100644
--- a/testing/toxic/chat.c
+++ b/testing/toxic/chat.c
@@ -107,19 +107,16 @@ static void chat_onKey(ToxWindow* self, int key) {
107 } 107 }
108 else if(key == '\n') { 108 else if(key == '\n') {
109 109
110 printf("Get times to int");
111 int inthour = timeinfo->tm_hour; //Pretty bad, but it gets the job done 110 int inthour = timeinfo->tm_hour; //Pretty bad, but it gets the job done
112 int intmin = timeinfo->tm_min; 111 int intmin = timeinfo->tm_min;
113 char min[2]; 112 char min[2];
114 char hour[2]; 113 char hour[2];
115 printf("Turn to varible");
116 sprintf(hour,"%d",inthour); 114 sprintf(hour,"%d",inthour);
117 if (intmin < 10) { 115 if (intmin < 10) {
118 sprintf(min,"0%d",intmin); 116 sprintf(min,"0%d",intmin);
119 } else { 117 } else {
120 sprintf(min,"%d",intmin); 118 sprintf(min,"%d",intmin);
121 } 119 }
122 printf("Display");
123 wattron(ctx->history, COLOR_PAIR(2)); 120 wattron(ctx->history, COLOR_PAIR(2));
124 wprintw(ctx->history,"%s",hour); 121 wprintw(ctx->history,"%s",hour);
125 wprintw(ctx->history,":%s ",min); 122 wprintw(ctx->history,":%s ",min);