mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-05-14 02:53:02 +00:00
runtime-rs: Remove dead code
`VmmPingResponse` and `NetInterworkingModel` are never constructed, so remove them Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
@@ -40,7 +40,6 @@ use nix::unistd::setgid;
|
||||
use nix::unistd::setuid;
|
||||
use nix::unistd::Gid;
|
||||
use nix::unistd::Uid;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::Value;
|
||||
use std::collections::HashMap;
|
||||
use std::convert::TryFrom;
|
||||
@@ -79,14 +78,6 @@ enum CloudHypervisorLogLevel {
|
||||
Error,
|
||||
}
|
||||
|
||||
#[derive(Clone, Deserialize, Serialize)]
|
||||
pub struct VmmPingResponse {
|
||||
pub build_version: String,
|
||||
pub version: String,
|
||||
pub pid: i64,
|
||||
pub features: Vec<String>,
|
||||
}
|
||||
|
||||
#[derive(thiserror::Error, Debug, PartialEq)]
|
||||
pub enum GuestProtectionError {
|
||||
#[error("guest protection requested but no guest protection available")]
|
||||
|
||||
@@ -17,9 +17,6 @@ use super::{
|
||||
|
||||
const TAP_SUFFIX: &str = "_kata";
|
||||
|
||||
#[derive(Default, Copy, Clone, Debug, PartialEq, Eq)]
|
||||
pub struct NetInterworkingModel(u32);
|
||||
|
||||
#[derive(Default, Debug, Clone)]
|
||||
pub struct NetworkInterface {
|
||||
pub name: String,
|
||||
|
||||
Reference in New Issue
Block a user