Skip to content

Commit

Permalink
Merge pull request #17798 from mjstapp/fix_remove_clear_thread
Browse files Browse the repository at this point in the history
libs: remove deprecated 'clear thread' cli
  • Loading branch information
Jafaral authored Jan 9, 2025
2 parents 3d7dbcf + cb11990 commit 465d286
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 465d286

Please sign in to comment.