]> git.puffer.fish Git - matthieu/frr.git/commitdiff
libs: remove deprecated 'clear thread' cli
authorMark Stapp <mjs@cisco.com>
Wed, 8 Jan 2025 15:17:51 +0000 (10:17 -0500)
committerMark Stapp <mjs@cisco.com>
Wed, 8 Jan 2025 15:17:51 +0000 (10:17 -0500)
Remove a deprecated 'clear thread cpu' command.

Signed-off-by: Mark Stapp <mjs@cisco.com>
lib/event.c

index cfe8c3adc049893999771e864e1ad252f552afe4..d95b3021a7688ab07c7581ac049b1fba4c7c8734 100644 (file)
@@ -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]",
@@ -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";
@@ -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);