]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: remove dead macro
authorRenato Westphal <renato@opensourcerouting.org>
Mon, 21 Jan 2019 14:39:35 +0000 (12:39 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 21 Jan 2019 15:26:54 +0000 (13:26 -0200)
This macro is not used since commit 078430f609e.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
zebra/zebra_rnh.c

index ee76df4db15e8ddfd187fe348b40f68133f5d02a..317a7cdecad5c0b52a50fc27acf98b84ce181169 100644 (file)
@@ -54,16 +54,6 @@ static void free_state(vrf_id_t vrf_id, struct route_entry *re,
                       struct route_node *rn);
 static void copy_state(struct rnh *rnh, struct route_entry *re,
                       struct route_node *rn);
-#define lookup_rnh_table(v, f)                                                 \
-       ({                                                                     \
-               struct zebra_vrf *zvrf;                                        \
-               struct route_table *t = NULL;                                  \
-               zvrf = zebra_vrf_lookup_by_id(v);                              \
-               if (zvrf)                                                      \
-                       t = zvrf->rnh_table[family2afi(f)];                    \
-               t;                                                             \
-       })
-
 static int compare_state(struct route_entry *r1, struct route_entry *r2);
 static int send_client(struct rnh *rnh, struct zserv *client, rnh_type_t type,
                       vrf_id_t vrf_id);