summaryrefslogtreecommitdiffstats
path: root/ospfd/ospfd.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-01-28 19:21:12 +0100
committerDonald Sharp <sharpd@nvidia.com>2021-01-28 19:21:12 +0100
commit59293b8e70a7983d8f022f9c8b79c20619659bc2 (patch)
treea909669cefcf02d844e33311d5df0e2cc4c6122f /ospfd/ospfd.c
parentMerge pull request #7933 from deastoe/show-route-header-sep (diff)
downloadfrr-59293b8e70a7983d8f022f9c8b79c20619659bc2.tar.xz
frr-59293b8e70a7983d8f022f9c8b79c20619659bc2.zip
ospfd: Remove #if 0 code
The #if 0 code in ospfd, has not been compiled since at least 2012. If we are at least 9 years old at this point with no effort to use or save, we should just get rid of it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospfd/ospfd.c')
-rw-r--r--ospfd/ospfd.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c
index 56424abec..dfb1b44e3 100644
--- a/ospfd/ospfd.c
+++ b/ospfd/ospfd.c
@@ -1739,26 +1739,6 @@ int ospf_area_nssa_translator_role_set(struct ospf *ospf,
return 1;
}
-#if 0
-/* XXX: unused? Leave for symmetry? */
-static int
-ospf_area_nssa_translator_role_unset (struct ospf *ospf,
- struct in_addr area_id)
-{
- struct ospf_area *area;
-
- area = ospf_area_lookup_by_area_id (ospf, area_id);
- if (area == NULL)
- return 0;
-
- area->NSSATranslatorRole = OSPF_NSSA_ROLE_CANDIDATE;
-
- ospf_area_check_free (ospf, area_id);
-
- return 1;
-}
-#endif
-
int ospf_area_export_list_set(struct ospf *ospf, struct ospf_area *area,
const char *list_name)
{
@@ -2004,29 +1984,9 @@ struct ospf_nbr_nbma *ospf_nbr_nbma_lookup(struct ospf *ospf,
struct ospf_nbr_nbma *ospf_nbr_nbma_lookup_next(struct ospf *ospf,
struct in_addr *addr, int first)
{
-#if 0
- struct ospf_nbr_nbma *nbr_nbma;
- struct listnode *node;
-#endif
-
if (ospf == NULL)
return NULL;
-#if 0
- for (ALL_LIST_ELEMENTS_RO (ospf->nbr_nbma, node, nbr_nbma))
- {
- if (first)
- {
- *addr = nbr_nbma->addr;
- return nbr_nbma;
- }
- else if (ntohl (nbr_nbma->addr.s_addr) > ntohl (addr->s_addr))
- {
- *addr = nbr_nbma->addr;
- return nbr_nbma;
- }
- }
-#endif
return NULL;
}