]> git.proxmox.com Git - mirror_frr.git/commitdiff
pbrd: Fix unused function
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 10 Apr 2018 12:03:25 +0000 (08:03 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 17 Apr 2018 22:43:47 +0000 (18:43 -0400)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pbrd/pbr_debug.c

index 2693120e15337d2e706d58fd097f8b77fcbcbf65..82f045c4624ca1bd06b9eaddb7f8f6ac82a19412 100644 (file)
@@ -54,24 +54,6 @@ void pbr_debug_set_all(uint32_t flags, bool set)
        }
 }
 
-/*
- * Check flags on all debugs for pbrd.
- *
- * flags
- *    The flags to set
- *
- * Returns:
- *    The subset of the given flags that were set in all pbrd debugs
- */
-static uint32_t pbr_debug_check_all(uint32_t flags)
-{
-       uint32_t mode = DEBUG_MODE_ALL;
-
-       for (unsigned int i = 0; i < array_size(pbr_debugs); i++)
-               mode &= DEBUG_MODE_CHECK(pbr_debugs[i], flags);
-       return mode;
-}
-
 int pbr_debug_config_write_helper(struct vty *vty, bool config)
 {
        uint32_t mode = DEBUG_MODE_ALL;