Remove special handling of pattern mode options.
authorBert Vermeulen <bert@biot.com>
Sun, 12 Jan 2014 21:52:36 +0000 (22:52 +0100)
committerBert Vermeulen <bert@biot.com>
Sun, 12 Jan 2014 21:52:36 +0000 (22:52 +0100)
It's just a standard list of strings, better handled by the regular
mechanism.

show.c

diff --git a/show.c b/show.c
index db643d13304a88ed0e61f5eae21610b6b7e6bc27..6b2f9853b0fbf9731b0b237117f804fba2bc8ce3 100644 (file)
--- a/show.c
+++ b/show.c
@@ -235,20 +235,6 @@ void show_dev_detail(void)
                        printf("\n");
                        g_variant_unref(gvar);
 
-               } else if (srci->key == SR_CONF_PATTERN_MODE) {
-                       /* Pattern generator modes */
-                       printf("    %s", srci->id);
-                       if (sr_config_list(sdi->driver, sdi, probe_group, srci->key,
-                                       &gvar) == SR_OK) {
-                               printf(" - supported patterns:\n");
-                               stropts = g_variant_get_strv(gvar, &num_elements);
-                               for (i = 0; i < num_elements; i++)
-                                       printf("      %s\n", stropts[i]);
-                               g_variant_unref(gvar);
-                       } else {
-                               printf("\n");
-                       }
-
                } else if (srci->key == SR_CONF_SAMPLERATE) {
                        /* Supported samplerates */
                        printf("    %s", srci->id);