runtime-rs: ch: Remove unused function

Delete the `handle_pending_devices_after_boot()` function which is no
longer required.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt 2023-09-25 11:23:16 +01:00
parent 995f2c015f
commit dea8065811

View File

@ -75,24 +75,6 @@ impl CloudHypervisorInner {
}
}
/// Add the device that were requested to be added before the VMM was
/// started.
#[allow(dead_code)]
pub(crate) async fn handle_pending_devices_after_boot(&mut self) -> Result<()> {
if self.state != VmmState::VmRunning {
return Err(anyhow!(
"cannot handle pending devices with VMM state {:?}",
self.state
));
}
while let Some(dev) = self.pending_devices.pop() {
self.add_device(dev).await.context("add_device")?;
}
Ok(())
}
pub(crate) async fn remove_device(&mut self, _device: DeviceType) -> Result<()> {
Ok(())
}