From 60bad36fb798cecbd566129d88faeeccca7353c4 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Thu, 28 Jul 2016 17:23:37 +0200 Subject: [PATCH] ospfd: ditch unused time fields The ctime/mtime fields in ospf_route and start_time field in ospf_master are written but never read, thus entirely useless. Remove them. Signed-off-by: David Lamparter --- ospfd/ospf_route.c | 2 -- ospfd/ospf_route.h | 6 ------ ospfd/ospfd.c | 1 - ospfd/ospfd.h | 3 --- 4 files changed, 12 deletions(-) diff --git a/ospfd/ospf_route.c b/ospfd/ospf_route.c index 7efba7a8c0..175850c318 100644 --- a/ospfd/ospf_route.c +++ b/ospfd/ospf_route.c @@ -47,8 +47,6 @@ ospf_route_new () new = XCALLOC (MTYPE_OSPF_ROUTE, sizeof (struct ospf_route)); - new->ctime = quagga_time (NULL); - new->mtime = new->ctime; new->paths = list_new (); new->paths->del = (void (*) (void *))ospf_path_free; diff --git a/ospfd/ospf_route.h b/ospfd/ospf_route.h index 4de3a3da16..d0b121db38 100644 --- a/ospfd/ospf_route.h +++ b/ospfd/ospf_route.h @@ -90,12 +90,6 @@ struct route_external struct ospf_route { - /* Create time. */ - time_t ctime; - - /* Modified time. */ - time_t mtime; - /* Destination Type. */ u_char type; diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c index 2a3f9c1d08..6d6bf12873 100644 --- a/ospfd/ospfd.c +++ b/ospfd/ospfd.c @@ -1939,5 +1939,4 @@ ospf_master_init () om = &ospf_master; om->ospf = list_new (); om->master = thread_master_create (); - om->start_time = quagga_time (NULL); } diff --git a/ospfd/ospfd.h b/ospfd/ospfd.h index 95809306d6..1a925c2c6a 100644 --- a/ospfd/ospfd.h +++ b/ospfd/ospfd.h @@ -98,9 +98,6 @@ struct ospf_master struct list *external[ZEBRA_ROUTE_MAX + 1]; #define EXTERNAL_INFO(E) (E->external_info) - /* OSPF start time. */ - time_t start_time; - /* Various OSPF global configuration. */ u_char options; #define OSPF_MASTER_SHUTDOWN (1 << 0) /* deferred-shutdown */ -- 2.39.5