There's no need to create a directory just because you're about to
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 26 Mar 2005 03:27:46 +0000 (03:27 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 26 Mar 2005 03:27:46 +0000 (03:27 +0000)
remove a file in it - the directory presumably exists already, if you're
about to remove a file in it.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13914 f5534014-38df-0310-8fa8-9805f1628bb7

color_filters.c

index b2572a60e6999e13c2064159127f8da8f2252b1c..951921ff15788fcd67f0b09d6f008ecfd49336bc 100644 (file)
@@ -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);