[gnome-shell] get_length_internal() - remove unused argument 'suffixed'



commit 05c3ac235908d0ef21e01ab3ffb1725666b43a10
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Nov 21 16:59:59 2019 -0600

    get_length_internal() - remove unused argument 'suffixed'
    
    It was passed as NULL in the single caller of this function.
    
    Part of https://gitlab.gnome.org/GNOME/gnome-shell/issues/1934

 src/st/st-theme-node.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/st/st-theme-node.c b/src/st/st-theme-node.c
index 2454fd0aa4..0f5bb32839 100644
--- a/src/st/st-theme-node.c
+++ b/src/st/st-theme-node.c
@@ -1136,7 +1136,6 @@ get_length_from_term_int (StThemeNode *node,
 static GetFromTermResult
 get_length_internal (StThemeNode *node,
                      const char  *property_name,
-                     const char  *suffixed,
                      gdouble     *length)
 {
   int i;
@@ -1147,8 +1146,7 @@ get_length_internal (StThemeNode *node,
     {
       CRDeclaration *decl = node->properties[i];
 
-      if (strcmp (decl->property->stryng->str, property_name) == 0 ||
-          (suffixed != NULL && strcmp (decl->property->stryng->str, suffixed) == 0))
+      if (strcmp (decl->property->stryng->str, property_name) == 0)
         {
           GetFromTermResult result = get_length_from_term (node, decl->value, FALSE, length);
           if (result != VALUE_NOT_FOUND)
@@ -1189,7 +1187,7 @@ st_theme_node_lookup_length (StThemeNode *node,
                              gboolean     inherit,
                              gdouble     *length)
 {
-  GetFromTermResult result = get_length_internal (node, property_name, NULL, length);
+  GetFromTermResult result = get_length_internal (node, property_name, length);
   if (result == VALUE_FOUND)
     return TRUE;
   else if (result == VALUE_INHERIT)


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