From 34f05f49cbf24a9b48344b95635aa8b2a92ead65 Mon Sep 17 00:00:00 2001 From: Yannick Poirier Date: Wed, 28 Feb 2024 09:15:58 +0100 Subject: [PATCH] get_type is unused --- src/fec/mod.rs | 4 ++-- src/fec/raptorq.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fec/mod.rs b/src/fec/mod.rs index fcd64f9..2e366f0 100644 --- a/src/fec/mod.rs +++ b/src/fec/mod.rs @@ -14,7 +14,7 @@ pub enum ShardType { pub trait FecShard: Send + Sync + std::fmt::Debug { fn data(&self) -> &[u8]; fn esi(&self) -> u32; - fn get_type(&self) -> ShardType; + fn _get_type(&self) -> ShardType; } #[derive(Debug)] @@ -33,7 +33,7 @@ impl FecShard for DataFecShard { self.index } - fn get_type(&self) -> ShardType { + fn _get_type(&self) -> ShardType { self.shard_type } } diff --git a/src/fec/raptorq.rs b/src/fec/raptorq.rs index a01dc62..6f8b537 100644 --- a/src/fec/raptorq.rs +++ b/src/fec/raptorq.rs @@ -21,7 +21,7 @@ impl FecShard for RaptorFecShard { fn esi(&self) -> u32 { self.pkt.payload_id().encoding_symbol_id() } - fn get_type(&self) -> ShardType { + fn _get_type(&self) -> ShardType { self.shard_type } }