Browse Source

Removed dead code from the tpm module.

Matthew Carr 2 years ago
parent
commit
672ebfef33
1 changed files with 1 additions and 8 deletions
  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();