]> rtime.felk.cvut.cz Git - sojka/lightdm.git/commitdiff
Remove unnecessary variable
authorRobert Ancell <robert.ancell@canonical.com>
Sun, 7 Sep 2014 23:28:20 +0000 (11:28 +1200)
committerRobert Ancell <robert.ancell@canonical.com>
Sun, 7 Sep 2014 23:28:20 +0000 (11:28 +1200)
common/configuration.c

index 4e50005a63f7efcc478f8ea11cc0ac80f00f05df..bf08c7d9cad83e3101511e65adad8a291a3f005d 100644 (file)
@@ -169,7 +169,6 @@ gboolean
 config_load_from_standard_locations (Configuration *config, const gchar *config_path, GList **messages)
 {
     gchar *config_d_dir = NULL, *path;
-    gboolean explicit_config = FALSE;
     gboolean success = TRUE;
     GError *error = NULL;
 
@@ -182,7 +181,6 @@ config_load_from_standard_locations (Configuration *config, const gchar *config_
     {
         path = g_strdup (config_path);
         config->priv->dir = path_make_absolute (g_path_get_basename (config_path));
-        explicit_config = TRUE;
     }
     else
     {
@@ -202,7 +200,7 @@ config_load_from_standard_locations (Configuration *config, const gchar *config_
 
         is_empty = error && g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT);
 
-        if (explicit_config || !is_empty)
+        if (config_path || !is_empty)
         {
             if (error)
                 g_printerr ("Failed to load configuration from %s: %s\n", path, error->message);