[gnome-mud] profile-manager: Don't get the default profile



commit 246659a81dc2eae69bda58dcc9cb6afa9bd886d0
Author: Steven Jackson <sj oscode net>
Date:   Thu Apr 20 16:16:23 2017 +0100

    profile-manager: Don't get the default profile
    
    The result isn't used.
    
    Reviewed-by: Mart Raudsepp <leio gentoo org>

 src/mud-profile-manager.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/mud-profile-manager.c b/src/mud-profile-manager.c
index 021ce60..4cd20bd 100644
--- a/src/mud-profile-manager.c
+++ b/src/mud-profile-manager.c
@@ -294,7 +294,7 @@ void
 mud_profile_manager_delete_profile(MudProfileManager *self,
                                    const gchar *name)
 {
-    MudProfile *profile, *default_profile;
+    MudProfile *profile;
     gchar *key, *pname;
     GSList *connections, *entry;
     GConfClient *client;
@@ -304,7 +304,6 @@ mud_profile_manager_delete_profile(MudProfileManager *self,
     client = gconf_client_get_default();
 
     profile = mud_profile_manager_get_profile_by_name(self, name);
-    default_profile = mud_profile_manager_get_profile_by_name(self, "Default");
 
     if (profile)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]