summaryrefslogtreecommitdiff
path: root/src/fe-text/irssi.c
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-02-05 01:15:38 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-02-05 01:15:38 +0000
commit1ea1c6f813c0548164a3e698a06688450409af19 (patch)
tree4b01fcaf9a21e1f0949109d9b4533bd166efb8e4 /src/fe-text/irssi.c
parent4fb888ce80f9185d5635a9722dc7b28f4cdf4800 (diff)
downloadirssi-1ea1c6f813c0548164a3e698a06688450409af19.zip
Remove check for ancient default.theme.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4707 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/irssi.c')
-rw-r--r--src/fe-text/irssi.c38
1 files changed, 0 insertions, 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();
}
}