From 846df3272f3117cad0adccd12a772c808c540023 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 20 Aug 2020 03:10:26 -0600 Subject: [PATCH] remove lif_interface.is_static, no longer used --- libifupdown/interface-file.c | 5 ----- libifupdown/interface.c | 2 -- libifupdown/interface.h | 1 - 3 files changed, 8 deletions(-) diff --git a/libifupdown/interface-file.c b/libifupdown/interface-file.c index bd6e0ba..5508715 100644 --- a/libifupdown/interface-file.c +++ b/libifupdown/interface-file.c @@ -168,11 +168,6 @@ lif_interface_file_parse(struct lif_dict *collection, const char *filename) cur_iface->is_bridge = true; else if (!strcmp(executor, "bond")) cur_iface->is_bond = true; - else if (!strcmp(executor, "static")) - { - cur_iface->is_static = true; - continue; - } else if (!strcmp(executor, "link")) continue; diff --git a/libifupdown/interface.c b/libifupdown/interface.c index 3f3bb69..c25591d 100644 --- a/libifupdown/interface.c +++ b/libifupdown/interface.c @@ -78,7 +78,6 @@ lif_interface_address_add(struct lif_interface *interface, const char *address) } lif_interface_use_executor(interface, "static"); - interface->is_static = true; lif_dict_add(&interface->vars, "address", addr); @@ -231,7 +230,6 @@ lif_interface_collection_inherit(struct lif_interface *interface, struct lif_dic return false; lif_dict_add(&interface->vars, "inherit", strdup(ifname)); - interface->is_static = parent->is_static; interface->is_dhcp = parent->is_dhcp; interface->is_bond = parent->is_bond; interface->is_bridge = parent->is_bridge; diff --git a/libifupdown/interface.h b/libifupdown/interface.h index 8b808b3..a562d63 100644 --- a/libifupdown/interface.h +++ b/libifupdown/interface.h @@ -51,7 +51,6 @@ struct lif_interface { bool is_auto; bool is_bridge; bool is_bond; - bool is_static; struct lif_dict vars;