]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Remove uneeded is_valid NHE functons
authorStephen Worley <sworley@cumulusnetworks.com>
Tue, 14 May 2019 23:11:00 +0000 (16:11 -0700)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:40 +0000 (11:13 -0400)
Remove some unused is_valid checks for the nhg_hash_entry's.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/zebra_nhg.c
zebra/zebra_nhg.h

index d9930ae193db93621c7e77d912975a2365a512fb..26db14036e41c6fc3ad0c8c437328416626b2fc1 100644 (file)
@@ -869,26 +869,6 @@ void zebra_nhg_increment_ref(struct nhg_hash_entry *nhe)
        }
 }
 
-static bool zebra_nhg_is_valid(struct nhg_hash_entry *nhe)
-{
-       if (nhe->flags & NEXTHOP_GROUP_VALID)
-               return true;
-
-       return false;
-}
-
-bool zebra_nhg_id_is_valid(uint32_t id)
-{
-       struct nhg_hash_entry *nhe = NULL;
-       bool is_valid = false;
-
-       nhe = zebra_nhg_lookup_id(id);
-
-       if (nhe)
-               is_valid = zebra_nhg_is_valid(nhe);
-
-       return is_valid;
-}
 void zebra_nhg_set_invalid(struct nhg_hash_entry *nhe)
 {
        if (!zebra_nhg_depends_is_empty(nhe)
index ef8b2730fbf106f0780f6a393a6a9c4e1ffeb66d..31a2a020a020772a071d15bf9363d2d454b6e745 100644 (file)
@@ -223,7 +223,6 @@ void zebra_nhg_free(void *arg);
 void zebra_nhg_decrement_ref(struct nhg_hash_entry *nhe);
 void zebra_nhg_increment_ref(struct nhg_hash_entry *nhe);
 
-extern bool zebra_nhg_id_is_valid(uint32_t id);
 void zebra_nhg_set_invalid(struct nhg_hash_entry *nhe);
 void zebra_nhg_set_if(struct nhg_hash_entry *nhe, struct interface *ifp);