[gnome-boxes] libvirt-machine: Drop unused get_domain_network_interface
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] libvirt-machine: Drop unused get_domain_network_interface
- Date: Tue, 14 Dec 2021 14:15:01 +0000 (UTC)
commit 8977c0946f22297cb9b71d9fa8309a1cd55fa059
Author: Felipe Borges <felipeborges gnome org>
Date: Tue Dec 14 15:11:38 2021 +0100
libvirt-machine: Drop unused get_domain_network_interface
We now use GVirConfig's APIs directly to update the network
device.
src/libvirt-machine.vala | 16 ----------------
1 file changed, 16 deletions(-)
---
diff --git a/src/libvirt-machine.vala b/src/libvirt-machine.vala
index f80dba6f..89579d8e 100644
--- a/src/libvirt-machine.vala
+++ b/src/libvirt-machine.vala
@@ -432,22 +432,6 @@ public void try_shutdown () {
return disk;
}
- private GVir.DomainInterface? get_domain_network_interface () throws GLib.Error {
- var net = null as GVir.DomainInterface;
-
- // FiXME: We currently only entertain one network interface
- foreach (var device_config in domain_config.get_devices ()) {
- if (device_config is GVirConfig.DomainInterface) {
- net = Object.new (typeof (GVir.DomainInterface),
- "domain", domain,
- "config", device_config) as GVir.DomainInterface;
- break;
- }
- }
-
- return net;
- }
-
private GVir.DomainStartFlags connect_flags_to_gvir (Machine.ConnectFlags flags) {
GVir.DomainStartFlags gvir_flags = 0;
if (Machine.ConnectFlags.IGNORE_SAVED_STATE in flags)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]