From 103cd61bd257cbf54c105fbb33651041ad5570c4 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Fri, 12 Jun 2020 16:17:55 +0000 Subject: [PATCH] vmm: device_tree: make available remove function unconditionally Its test case calls remove unconditionally. Instead of making the test code call remove conditionally, removing the pci_support dependency simplifies things -- that function is just a wrapper around HashMap's remove function anyway. Signed-off-by: Wei Liu --- vmm/src/device_tree.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/vmm/src/device_tree.rs b/vmm/src/device_tree.rs index c062db683..3610f2938 100644 --- a/vmm/src/device_tree.rs +++ b/vmm/src/device_tree.rs @@ -62,7 +62,6 @@ impl DeviceTree { pub fn insert(&mut self, k: String, v: DeviceNode) -> Option { self.0.insert(k, v) } - #[cfg(feature = "pci_support")] pub fn remove(&mut self, k: &str) -> Option { self.0.remove(k) }