summaryrefslogtreecommitdiff
path: root/testing/toxic/chat.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/toxic/chat.c')
-rw-r--r--testing/toxic/chat.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/testing/toxic/chat.c b/testing/toxic/chat.c
index 6811569b..e4da9484 100644
--- a/testing/toxic/chat.c
+++ b/testing/toxic/chat.c
@@ -26,8 +26,6 @@ typedef struct {
26 WINDOW* linewin; 26 WINDOW* linewin;
27} ChatContext; 27} ChatContext;
28 28
29static delWindowFn *del_window;
30
31void print_help(ChatContext *self); 29void print_help(ChatContext *self);
32void execute(ToxWindow *self, ChatContext *ctx, Messenger *m, char *cmd); 30void execute(ToxWindow *self, ChatContext *ctx, Messenger *m, char *cmd);
33 31
@@ -370,9 +368,8 @@ void print_help(ChatContext *self)
370 wattroff(self->history, COLOR_PAIR(2)); 368 wattroff(self->history, COLOR_PAIR(2));
371} 369}
372 370
373ToxWindow new_chat(Messenger *m, int friendnum, delWindowFn *f) 371ToxWindow new_chat(Messenger *m, int friendnum)
374{ 372{
375 del_window = f;
376 ToxWindow ret; 373 ToxWindow ret;
377 memset(&ret, 0, sizeof(ret)); 374 memset(&ret, 0, sizeof(ret));
378 375