]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: ditch unused time fields
authorDavid Lamparter <equinox@opensourcerouting.org>
Thu, 28 Jul 2016 15:23:37 +0000 (17:23 +0200)
committerDonald Sharp <sharpd@cumulusnetwroks.com>
Thu, 28 Jul 2016 11:27:47 +0000 (07:27 -0400)
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>
ospfd/ospf_route.c
ospfd/ospf_route.h
ospfd/ospfd.c
ospfd/ospfd.h

index 7efba7a8c0282158f133bdadbd046c4327c04111..175850c3181e83080cde97fa75a9be6d94e92d55 100644 (file)
@@ -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;
 
index 4de3a3da165b2595a5da101f5310b23371bfd93d..d0b121db3871e501072d9065cc278e38063f2e1c 100644 (file)
@@ -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;
 
index 2a3f9c1d084e1ed57aadae966a296b697edffebf..6d6bf128733a0c7bb37a9657faf3240f1a464c5d 100644 (file)
@@ -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);
 }
index 95809306d6e0790d0a84925916ec667a4c5cc66f..1a925c2c6a116d0200ccc2c00a9c7f3ab5f28971 100644 (file)
@@ -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 */