[Xfce4-commits] [xfce/xfce4-settings] 03/03: Drop unnecessary var

noreply at xfce.org noreply at xfce.org
Fri Apr 19 00:50:25 CEST 2019


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-settings.

commit c62261c73e8ba1244055233b1d7297b22cb300c5
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Fri Apr 19 00:49:19 2019 +0200

    Drop unnecessary var
---
 common/display-profiles.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/common/display-profiles.c b/common/display-profiles.c
index 55ae1d5..c4b7f78 100644
--- a/common/display-profiles.c
+++ b/common/display-profiles.c
@@ -121,7 +121,7 @@ display_settings_get_profiles (XfceRandr *xfce_randr, XfconfChannel *channel)
         while (g_hash_table_iter_next (&iter, &key, &value))
         {
             gchar *property;
-            gchar *current_edid, *output_edid;
+            gchar *current_edid;
 
             gchar ** property_elements = g_strsplit (key, "/", -1);
             if (get_size (property_elements) == 3) {
@@ -129,13 +129,12 @@ display_settings_get_profiles (XfceRandr *xfce_randr, XfconfChannel *channel)
 
                 property = g_strdup_printf ("%s/EDID", (gchar*)key);
                 current_edid = xfconf_channel_get_string (channel, property, NULL);
-                output_edid = g_strdup_printf ("%s", current_edid);
 
                 if (current_edid) {
 
                     for (m = 0; m < xfce_randr->noutput; ++m)
                     {
-                        if (g_strcmp0 (display_infos[m], output_edid) == 0)
+                        if (g_strcmp0 (display_infos[m], current_edid) == 0)
                         {
                             profile_match ++;
                         }
@@ -143,7 +142,6 @@ display_settings_get_profiles (XfceRandr *xfce_randr, XfconfChannel *channel)
                 }
                 g_free (property);
                 g_free (current_edid);
-                g_free (output_edid);
             }
 
             g_strfreev (property_elements);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list