summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2016-07-28 17:23:37 +0200
committerDonald Sharp <sharpd@cumulusnetwroks.com>2016-07-28 13:27:47 +0200
commit60bad36fb798cecbd566129d88faeeccca7353c4 (patch)
treef201eca776468632415c7d6385ac93c615cf27bd /ospfd
parentospfd: monotonic clock for lsa_refresher_started (diff)
downloadfrr-60bad36fb798cecbd566129d88faeeccca7353c4.tar.xz
frr-60bad36fb798cecbd566129d88faeeccca7353c4.zip
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 <equinox@opensourcerouting.org>
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospf_route.c2
-rw-r--r--ospfd/ospf_route.h6
-rw-r--r--ospfd/ospfd.c1
-rw-r--r--ospfd/ospfd.h3
4 files changed, 0 insertions, 12 deletions
diff --git a/ospfd/ospf_route.c b/ospfd/ospf_route.c
index 7efba7a8c..175850c31 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 4de3a3da1..d0b121db3 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 2a3f9c1d0..6d6bf1287 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 95809306d..1a925c2c6 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 */