From f3d2a926e2eec7c691f41f66bf69d5f6730ae3ca Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 26 Mar 2005 03:27:46 +0000 Subject: There's no need to create a directory just because you're about to remove a file in it - the directory presumably exists already, if you're about to remove a file in it. svn path=/trunk/; revision=13914 --- color_filters.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'color_filters.c') diff --git a/color_filters.c b/color_filters.c index b2572a60e6..951921ff15 100644 --- a/color_filters.c +++ b/color_filters.c @@ -440,19 +440,8 @@ color_filters_write(void) gboolean color_filters_revert(void) { - gchar *pf_dir_path; gchar *path; - /* Create the directory that holds personal configuration files, - if necessary. */ - if (create_persconffile_dir(&pf_dir_path) == -1) { - simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, - "Can't create directory\n\"%s\"\nfor color files: %s.", - pf_dir_path, strerror(errno)); - g_free(pf_dir_path); - return FALSE; - } - path = get_persconffile_path("colorfilters", TRUE); if (!deletefile(path)) { g_free(path); -- cgit v1.2.3