summaryrefslogtreecommitdiff
path: root/cloudinit/distros/networking.py
diff options
context:
space:
mode:
authorDaniel Watkins <oddbloke@ubuntu.com>2020-06-24 15:22:45 -0400
committerGitHub <noreply@github.com>2020-06-24 15:22:45 -0400
commit31b540524fd1dd5ae79bc703f581339fff1883e9 (patch)
treebd4cfade17f9df7b0b12d59b2bd5f8987058fb7f /cloudinit/distros/networking.py
parent9a97a3f24e196401a9c54e9c7977ef6a03c98aeb (diff)
downloadvyos-cloud-init-31b540524fd1dd5ae79bc703f581339fff1883e9.tar.gz
vyos-cloud-init-31b540524fd1dd5ae79bc703f581339fff1883e9.zip
net/networking: remove unused functions/methods (#453)
Namely, is_connected, is_wireless and is_present. None of these are used in the cloud-init codebase, so remove the dead code (instead of refactoring it).
Diffstat (limited to 'cloudinit/distros/networking.py')
-rw-r--r--cloudinit/distros/networking.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/cloudinit/distros/networking.py b/cloudinit/distros/networking.py
index f9842889..eecdccc6 100644
--- a/cloudinit/distros/networking.py
+++ b/cloudinit/distros/networking.py
@@ -79,15 +79,9 @@ class Networking(metaclass=abc.ABCMeta):
def is_bridge(self, devname: DeviceName) -> bool:
return net.is_bridge(devname)
- def is_connected(self, devname: DeviceName) -> bool:
- return net.is_connected(devname)
-
def is_physical(self, devname: DeviceName) -> bool:
return net.is_physical(devname)
- def is_present(self, devname: DeviceName) -> bool:
- return net.is_present(devname)
-
def is_renamed(self, devname: DeviceName) -> bool:
return net.is_renamed(devname)
@@ -97,9 +91,6 @@ class Networking(metaclass=abc.ABCMeta):
def is_vlan(self, devname: DeviceName) -> bool:
return net.is_vlan(devname)
- def is_wireless(self, devname: DeviceName) -> bool:
- return net.is_wireless(devname)
-
def master_is_bridge_or_bond(self, devname: DeviceName) -> bool:
return net.master_is_bridge_or_bond(devname)