summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-11-05 19:55:50 +0100
committerFlorin Coras <florin.coras@gmail.com>2021-11-05 22:05:59 +0000
commit3f8b8d30cade20afa8975a5e7a6d79346cec8f3e (patch)
tree54159b8bef893b9693cb33f145683133b35589b6 /src
parentad8b37dce93b3fd38f9e4a0ade744703e43ab87d (diff)
vlib: remove dead code
Type: refactor Change-Id: I818bacdb068e825b38acdceb2566972819c64e82 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vlib/node_cli.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/vlib/node_cli.c b/src/vlib/node_cli.c
index a2cae364d9b..d7c7d11aedb 100644
--- a/src/vlib/node_cli.c
+++ b/src/vlib/node_cli.c
@@ -498,7 +498,6 @@ show_node_runtime (vlib_main_t * vm,
uword i, j;
f64 dt;
u64 n_input, n_output, n_drop, n_punt;
- u64 n_internal_vectors, n_internal_calls;
u64 n_clocks, l, v, c, d;
int brief = 1;
int summary = 0;
@@ -557,7 +556,6 @@ show_node_runtime (vlib_main_t * vm,
vec_sort_with_function (nodes, node_cmp);
n_input = n_output = n_drop = n_punt = n_clocks = 0;
- n_internal_vectors = n_internal_calls = 0;
for (i = 0; i < vec_len (nodes); i++)
{
n = nodes[i];
@@ -577,11 +575,6 @@ show_node_runtime (vlib_main_t * vm,
n_output += (n->flags & VLIB_NODE_FLAG_IS_OUTPUT) ? v : 0;
n_drop += (n->flags & VLIB_NODE_FLAG_IS_DROP) ? v : 0;
n_punt += (n->flags & VLIB_NODE_FLAG_IS_PUNT) ? v : 0;
- if (!(n->flags & VLIB_NODE_FLAG_IS_OUTPUT))
- {
- n_internal_vectors += v;
- n_internal_calls += c;
- }
if (n->flags & VLIB_NODE_FLAG_IS_HANDOFF)
n_input += v;
break;