From 1ea1c6f813c0548164a3e698a06688450409af19 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Tue, 5 Feb 2008 01:15:38 +0000 Subject: [PATCH] Remove check for ancient default.theme. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4707 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/irssi.c | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/src/fe-text/irssi.c b/src/fe-text/irssi.c index 9e3a9e21..ddd653ce 100644 --- a/src/fe-text/irssi.c +++ b/src/fe-text/irssi.c @@ -247,42 +247,6 @@ static void textui_deinit(void) core_deinit(); } -static void check_oldcrap(void) -{ - FILE *f; - char *path, str[256]; - int found; - - /* check that default.theme is up-to-date */ - path = g_strdup_printf("%s/default.theme", get_irssi_dir()); - f = fopen(path, "r+"); - if (f == NULL) { - g_free(path); - return; - } - found = FALSE; - while (!found && fgets(str, sizeof(str), f) != NULL) - found = strstr(str, "abstracts = ") != NULL; - fclose(f); - - if (found) { - g_free(path); - return; - } - - printf("\nYou seem to have an old default.theme in %s/ directory.\n", get_irssi_dir()); - printf("Themeing system has changed a bit since last irssi release,\n"); - printf("you should either delete your old default.theme or manually\n"); - printf("merge it with the new default.theme.\n\n"); - printf("Do you want to delete the old theme now? (Y/n)\n"); - - str[0] = '\0'; - fgets(str, sizeof(str), stdin); - if (i_toupper(str[0]) == 'Y' || str[0] == '\n' || str[0] == '\0') - remove(path); - g_free(path); -} - static void check_files(void) { struct stat statbuf; @@ -290,8 +254,6 @@ static void check_files(void) if (stat(get_irssi_dir(), &statbuf) != 0) { /* ~/.irssi doesn't exist, first time running irssi */ display_firsttimer = TRUE; - } else { - check_oldcrap(); } }