From: Stephen Hemminger Date: Mon, 21 Nov 2022 19:04:53 +0000 (-0800) Subject: tc_stab: remove dead code X-Git-Tag: v6.1.0~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d88020af30fbbdd1f8e597a17af0e3229324e9a2;p=thirdparty%2Fiproute2.git tc_stab: remove dead code This code to print the STAB table is not supportable, not converting to JSON. Signed-off-by: Stephen Hemminger --- diff --git a/tc/tc_stab.c b/tc/tc_stab.c index c0f1f160d..c61ecfd20 100644 --- a/tc/tc_stab.c +++ b/tc/tc_stab.c @@ -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 }