remove lif_interface.is_static, no longer used

This commit is contained in:
Ariadne Conill 2020-08-20 03:10:26 -06:00
parent d463d455da
commit 846df3272f
3 changed files with 0 additions and 8 deletions

View file

@ -168,11 +168,6 @@ lif_interface_file_parse(struct lif_dict *collection, const char *filename)
cur_iface->is_bridge = true; cur_iface->is_bridge = true;
else if (!strcmp(executor, "bond")) else if (!strcmp(executor, "bond"))
cur_iface->is_bond = true; cur_iface->is_bond = true;
else if (!strcmp(executor, "static"))
{
cur_iface->is_static = true;
continue;
}
else if (!strcmp(executor, "link")) else if (!strcmp(executor, "link"))
continue; continue;

View file

@ -78,7 +78,6 @@ lif_interface_address_add(struct lif_interface *interface, const char *address)
} }
lif_interface_use_executor(interface, "static"); lif_interface_use_executor(interface, "static");
interface->is_static = true;
lif_dict_add(&interface->vars, "address", addr); lif_dict_add(&interface->vars, "address", addr);
@ -231,7 +230,6 @@ lif_interface_collection_inherit(struct lif_interface *interface, struct lif_dic
return false; return false;
lif_dict_add(&interface->vars, "inherit", strdup(ifname)); lif_dict_add(&interface->vars, "inherit", strdup(ifname));
interface->is_static = parent->is_static;
interface->is_dhcp = parent->is_dhcp; interface->is_dhcp = parent->is_dhcp;
interface->is_bond = parent->is_bond; interface->is_bond = parent->is_bond;
interface->is_bridge = parent->is_bridge; interface->is_bridge = parent->is_bridge;

View file

@ -51,7 +51,6 @@ struct lif_interface {
bool is_auto; bool is_auto;
bool is_bridge; bool is_bridge;
bool is_bond; bool is_bond;
bool is_static;
struct lif_dict vars; struct lif_dict vars;