mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 20:24:31 +00:00
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:
parent
995f2c015f
commit
dea8065811
@ -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<()> {
|
pub(crate) async fn remove_device(&mut self, _device: DeviceType) -> Result<()> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user