Remove unused code
Test: TreeHugger
Change-Id: If7a4606f5a6a09c574574ed8ed04788435259fa8
diff --git a/keystore2/src/remote_provisioning.rs b/keystore2/src/remote_provisioning.rs
index 0ef8c95..d70fe22 100644
--- a/keystore2/src/remote_provisioning.rs
+++ b/keystore2/src/remote_provisioning.rs
@@ -31,7 +31,6 @@
use anyhow::{Context, Result};
use keystore2_crypto::parse_subject_from_certificate;
-use crate::database::Uuid;
use crate::error::wrapped_rkpd_error_to_ks_error;
use crate::globals::get_remotely_provisioned_component_name;
use crate::ks_err;
@@ -44,18 +43,12 @@
#[derive(Default)]
pub struct RemProvState {
security_level: SecurityLevel,
- km_uuid: Uuid,
}
impl RemProvState {
/// Creates a RemProvState struct.
- pub fn new(security_level: SecurityLevel, km_uuid: Uuid) -> Self {
- Self { security_level, km_uuid }
- }
-
- /// Returns the uuid for the KM instance attached to this RemProvState struct.
- pub fn get_uuid(&self) -> Uuid {
- self.km_uuid
+ pub fn new(security_level: SecurityLevel) -> Self {
+ Self { security_level }
}
fn is_rkp_only(&self) -> bool {