mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-10 04:06:47 +00:00
chore: remove code nothing uses
Each was checked with git grep across every tracked file (templates, JS, shell, unit files and the extensionless console daemons) and for dynamic use (URL names, template names, registries): - vrtManager: host_is_up, is_kvm_supported, get_emulators, get_file_extensions, both get_network_forward, get_snapshots, get_storages_images, get_os_type, get_host_arch, the get_pretty_* trio and, in util, is_kvm_available, randomMAC, get_max_vcpus, compareMAC, pretty_mem, pretty_bytes and validate_uuid; with them the port constants only host_is_up read. Some were reached only by their tests, which go too. - The flavor edit page: nothing linked to it; flavors are created and deleted on the Flavors page and edited through the API. - computes.validate_name, UserForm.identity_has_errors, the has_perm template tag, the ALLOW_EMPTY_PASSWORD setting nothing reads, hidePleaseWaitDialog, default_app_config (ignored since Django 4.1) and the Python < 3.6 lines of secret_generator.py.
This commit is contained in:
parent
02412b7ea5
commit
764cbb3c43
26 changed files with 307 additions and 690 deletions
|
|
@ -326,11 +326,6 @@ class wvmNetwork(wvmConnect):
|
|||
def get_network_mac(self):
|
||||
return self.tree.xpath("string(mac/@address)")
|
||||
|
||||
def get_network_forward(self):
|
||||
"""Its forward mode (None: isolated) and the device it forwards through."""
|
||||
forward = self.tree.find("forward")
|
||||
return [forward.get("mode"), forward.get("dev")] if forward is not None else [None, None]
|
||||
|
||||
def _ip(self, index):
|
||||
"""The saved <ip> of that index, and what ip_networks tells of it."""
|
||||
tree = self.config()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue