[pve-devel] [PATCH qemu-server] qemu: remove unused methods
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Nov 20 15:38:35 CET 2019
found no use with tree-wide search, so remove:
* nic_models
* os_list_description
Both were introduced before the import to SVN happened.
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
holler me if you find a use
PVE/QemuServer.pm | 22 ----------------------
1 file changed, 22 deletions(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index a489524..2a3d6df 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -1562,29 +1562,7 @@ sub option_exists {
return defined($confdesc->{$key});
}
-sub nic_models {
- return $nic_model_list;
-}
-
-sub os_list_description {
-
- return {
- other => 'Other',
- wxp => 'Windows XP',
- w2k => 'Windows 2000',
- w2k3 =>, 'Windows 2003',
- w2k8 => 'Windows 2008',
- wvista => 'Windows Vista',
- win7 => 'Windows 7',
- win8 => 'Windows 8/2012',
- win10 => 'Windows 10/2016',
- l24 => 'Linux 2.4',
- l26 => 'Linux 2.6',
- };
-}
-
my $cdrom_path;
-
sub get_cdrom_path {
return $cdrom_path if $cdrom_path;
--
2.20.1
More information about the pve-devel
mailing list