]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
tc_stab: remove dead code
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 21 Nov 2022 19:04:53 +0000 (11:04 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 21 Nov 2022 19:04:53 +0000 (11:04 -0800)
This code to print the STAB table is not supportable,
not converting to JSON.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/tc_stab.c

index c0f1f160d56ed38b88b2d83df1da65766c055ac1..c61ecfd200cad90553b99880b9d510338adbd6be 100644 (file)
@@ -130,20 +130,4 @@ void print_size_table(FILE *fp, const char *prefix, struct rtattr *rta)
                if (s.tsize)
                        fprintf(fp, "tsize %u ", s.tsize);
        }
-
-#if 0
-       if (tb[TCA_STAB_DATA]) {
-               unsigned int i, j, dlen;
-               __u16 *data = RTA_DATA(tb[TCA_STAB_DATA]);
-
-               dlen = RTA_PAYLOAD(tb[TCA_STAB_DATA]) / sizeof(__u16);
-
-               fprintf(fp, "\n%sstab data:", prefix);
-               for (i = 0; i < dlen/12; i++) {
-                       fprintf(fp, "\n%s %3u:", prefix, i * 12);
-                       for (j = 0; i * 12 + j < dlen; j++)
-                               fprintf(fp, " %05x", data[i * 12 + j]);
-               }
-       }
-#endif
 }