]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: remove the EVENT_OFF macro 18739/head
authorMark Stapp <mjs@cisco.com>
Tue, 29 Apr 2025 18:33:26 +0000 (14:33 -0400)
committerMark Stapp <mjs@cisco.com>
Tue, 29 Apr 2025 18:45:29 +0000 (14:45 -0400)
Remove the long-deprecated macro.

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

index 61baf7919c5fea950ac3a19fd73807c72a6cd77a..318e7634fccc280ab856f8009adfc7ec4924ac17 100644 (file)
@@ -186,15 +186,6 @@ static inline unsigned long timeval_elapsed(struct timeval a, struct timeval b)
 #define EVENT_FD(X) ((X)->u.fd)
 #define EVENT_VAL(X) ((X)->u.val)
 
-/*
- * Please consider this macro deprecated, and do not use it in new code.
- */
-#define EVENT_OFF(thread)                                                      \
-       do {                                                                   \
-               if ((thread))                                                  \
-                       event_cancel(&(thread));                               \
-       } while (0)
-
 /*
  * Macro wrappers to generate xrefs for all thread add calls.  Includes
  * file/line/function info for debugging/tracing.