From e48ab2649258c592b25976cd0fcfa12a5312446b Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Fri, 12 Feb 2016 16:07:41 +0100 Subject: call: Remove unused function writemsg(). Signed-off-by: Ralf Baechle --- call/call.c | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'call/call.c') diff --git a/call/call.c b/call/call.c index 8634d34..9e29113 100644 --- a/call/call.c +++ b/call/call.c @@ -1674,36 +1674,6 @@ int readoutg(t_win * win_out, wint * wintab, menuitem * top, char buf[], wrefresh(win_out->ptr); return 0; } -void writemsg(char fname[], char caller[]) -{ - char text_row[255]; - char *text_ptr; - char buf[255]; - FILE *f = fopen(fname, "r"); - - if (f == NULL) { - perror(fname); - return; - } - do { - if (fgets(text_row, 255, f) != 0) { - text_row[strlen(text_row) - 1] = '\r'; - text_ptr = strchr(text_row, '$'); - if (text_ptr != NULL) { - strcpy(buf, text_ptr + 2); - switch (*(text_ptr + 1)) { - case 'c': - { - strcpy(text_ptr, caller); - strcat(text_ptr, buf); - } - } - } - write(fd, text_row, strlen(text_row)); - } - } - while (!feof(f)); -} void remotecommand(char buf[], int bytes) { -- cgit v1.2.3