Skip to content

Commit

Permalink
Test: remove never unused fields
Browse files Browse the repository at this point in the history
Signed-off-by: xiaoyuxlu <[email protected]>
  • Loading branch information
xiaoyuxlu committed Dec 9, 2024
1 parent ed3dfb0 commit 4814bfe
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions test/spdm-responder-emu/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ use tdisp::pci_tdisp::{
use tdisp::pci_tdisp_responder::pci_tdisp_rsp_dispatcher;

use std::net::{TcpListener, TcpStream};
use std::u32;

use codec::{Codec, Reader, Writer};
use common::SpdmTransportEncap;
Expand Down Expand Up @@ -145,9 +144,6 @@ fn emu_main_inner() {
spdmlib::secret::psk::register(SECRET_PSK_IMPL_INSTANCE.clone());

let tdisp_rsp_context = DeviceContext {
bus: 0x2a,
device: 0x00,
function: 0x00,
negotiated_version: None,
interface_id: InterfaceId {
function_id: FunctionId {
Expand Down
3 changes: 0 additions & 3 deletions test/spdm-responder-emu/src/spdm_device_tdisp_example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@ impl Codec for TdiReportStructure {

#[derive(Debug, Clone)]
pub struct DeviceContext {
pub bus: u8,
pub device: u8,
pub function: u8,
pub negotiated_version: Option<TdispVersion>,
pub interface_id: InterfaceId,
pub dsm_caps: u32,
Expand Down

0 comments on commit 4814bfe

Please sign in to comment.