From deb2b94354673487007b317fdfaf9b1ba4658970 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Wed, 28 May 2025 18:17:39 +0200 Subject: [PATCH] transcoder: remove unused trait method --- src/transcoder.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/transcoder.rs b/src/transcoder.rs index a287706..9debca7 100644 --- a/src/transcoder.rs +++ b/src/transcoder.rs @@ -150,7 +150,6 @@ pub struct DecodeContext { pub trait EncoderInterface { fn encode_frame(&mut self, dst_id: u32, frm: NAFrameRef, scale_opts: &[(String, String)], queue: &mut OutputQueue) -> EncoderResult; fn flush(&mut self, queue: &mut OutputQueue) -> EncoderResult<()>; - fn get_packet(&mut self) -> EncoderResult>; } pub struct AudioEncodeContext { @@ -219,9 +218,6 @@ impl EncoderInterface for AudioEncodeContext { } Ok(()) } - fn get_packet(&mut self) -> EncoderResult> { - self.encoder.get_packet() - } } pub struct VideoEncodeContext { @@ -329,9 +325,6 @@ impl EncoderInterface for VideoEncodeContext { } Ok(()) } - fn get_packet(&mut self) -> EncoderResult> { - self.encoder.get_packet() - } } pub enum OutputMode { -- 2.39.5