Jelajahi Sumber

Removed dead code from the tpm module.

Matthew Carr 2 tahun lalu
induk
melakukan
672ebfef33
1 mengubah file dengan 1 tambahan dan 8 penghapusan
  1. 1 8
      crates/btnode/src/crypto/tpm.rs

+ 1 - 8
crates/btnode/src/crypto/tpm.rs

@@ -72,7 +72,7 @@ mod test {
         constants::{
             session_type::{SessionType},
         },
-        tcti_ldr::{DeviceConfig, NetworkTPMConfig, TctiNameConf, TabrmdConfig},
+        tcti_ldr::{DeviceConfig, TctiNameConf, TabrmdConfig},
         interface_types::{
             resource_handles::{Hierarchy},
             algorithm::{HashingAlgorithm},
@@ -94,13 +94,6 @@ mod test {
         },
     };
 
-    //#[test]
-    fn decode_return_code() {
-        const RC: TSS2_RC = 0x00000101;
-        let text = tss2_rc_decode(RC);
-        panic!("{}", text);
-    }
-
     #[test]
     fn create_context() {
         let config = TabrmdConfig::default();