testicontheme: Remove useless function
authorMatthias Clasen <mclasen@redhat.com>
Thu, 17 Oct 2019 21:21:45 +0000 (16:21 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 18 Oct 2019 13:53:23 +0000 (08:53 -0500)
Contexts in icon themes are not useful for anything,
so drop this function from testicontheme.

tests/testicontheme.c

index 18bb84ec8b1c94c131724d06ade9af4177c878f6..8b3d4628642d33f17e7f531845d06a8d73b88720 100644 (file)
@@ -29,8 +29,6 @@ usage (void)
           "usage: test-icon-theme list <theme name> [context]\n"
           " or\n"
           "usage: test-icon-theme display <theme name> <icon name> [size] [scale]\n"
-          " or\n"
-          "usage: test-icon-theme contexts <theme name>\n"
           );
 }
 
@@ -174,16 +172,6 @@ main (int argc, char *argv[])
       list = gtk_icon_theme_list_icons (icon_theme,
                                           context);
       
-      while (list)
-       {
-         g_print ("%s\n", (char *)list->data);
-         list = list->next;
-       }
-    }
-  else if (strcmp (argv[1], "contexts") == 0)
-    {
-      list = gtk_icon_theme_list_contexts (icon_theme);
-      
       while (list)
        {
          g_print ("%s\n", (char *)list->data);