aboutsummaryrefslogtreecommitdiffstats
path: root/color_filters.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-03-26 03:27:46 +0000
committerGuy Harris <guy@alum.mit.edu>2005-03-26 03:27:46 +0000
commitf3d2a926e2eec7c691f41f66bf69d5f6730ae3ca (patch)
tree2175a58e9c75fdfd53773c9b0e9347fc962fe224 /color_filters.c
parent48217e0bee7786de554dbbb763c6cecde4427265 (diff)
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
Diffstat (limited to 'color_filters.c')
-rw-r--r--color_filters.c11
1 files changed, 0 insertions, 11 deletions
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);