Skip to content

Commit

Permalink
libs: remove deprecated 'clear thread' cli
Browse files Browse the repository at this point in the history
Remove a deprecated 'clear thread cpu' command.

Signed-off-by: Mark Stapp <[email protected]>
  • Loading branch information
Mark Stapp committed Jan 8, 2025
1 parent 8168dd9 commit cb11990
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,6 @@ DEFUN_NOSH (show_event_poll,
return CMD_SUCCESS;
}

#if CONFDATE > 20241231
CPP_NOTICE("Remove `clear thread cpu` command")
#endif
DEFUN (clear_event_cpu,
clear_event_cpu_cmd,
"clear event cpu [FILTER]",
Expand All @@ -457,14 +454,6 @@ DEFUN (clear_event_cpu,
return CMD_SUCCESS;
}

ALIAS (clear_event_cpu,
clear_thread_cpu_cmd,
"clear thread cpu [FILTER]",
"Clear stored data in all pthreads\n"
"Thread information\n"
"Thread CPU usage\n"
"Display filter (rwtexb)\n")

static void show_event_timers_helper(struct vty *vty, struct event_loop *m)
{
const char *name = m->name ? m->name : "main";
Expand Down Expand Up @@ -504,7 +493,6 @@ void event_cmd_init(void)
{
install_element(VIEW_NODE, &show_event_cpu_cmd);
install_element(VIEW_NODE, &show_event_poll_cmd);
install_element(ENABLE_NODE, &clear_thread_cpu_cmd);
install_element(ENABLE_NODE, &clear_event_cpu_cmd);

install_element(CONFIG_NODE, &service_cputime_stats_cmd);
Expand Down

0 comments on commit cb11990

Please sign in to comment.