mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-22 04:25:21 +00:00
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 <liuwe@microsoft.com>
This commit is contained in:
parent
66f7d20ee5
commit
103cd61bd2
@ -62,7 +62,6 @@ impl DeviceTree {
|
||||
pub fn insert(&mut self, k: String, v: DeviceNode) -> Option<DeviceNode> {
|
||||
self.0.insert(k, v)
|
||||
}
|
||||
#[cfg(feature = "pci_support")]
|
||||
pub fn remove(&mut self, k: &str) -> Option<DeviceNode> {
|
||||
self.0.remove(k)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user