mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
Remove check for ancient default.theme.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4707 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
4fb888ce80
commit
1ea1c6f813
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user