From 13e05c033b32fb101d57bd8c200162fa4583e246 Mon Sep 17 00:00:00 2001 From: Aron Heinecke Date: Fri, 13 Aug 2021 15:16:21 +0200 Subject: [PATCH] Remove unused decoder from tests --- src/discord.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/discord.rs b/src/discord.rs index 98a74b5..5111799 100644 --- a/src/discord.rs +++ b/src/discord.rs @@ -1,11 +1,7 @@ //! Discord handler -use std::sync::Arc; - -use audiopus::{Channels, SampleRate}; -use audiopus::coder::Decoder; use serde::Deserialize; -use serenity::prelude::{Mentionable, Mutex}; +use serenity::prelude::Mentionable; // This trait adds the `register_songbird` and `register_songbird_with` methods // to the client builder below, making it easy to install this voice client. @@ -334,7 +330,6 @@ fn check_msg(result: SerenityResult) { struct Receiver{ sink: crate::AudioBufferDiscord, - decoder: Arc>, } impl Receiver { @@ -343,7 +338,6 @@ impl Receiver { // you can later store them in intervals. Self { sink: voice_receiver, - decoder: Arc::new(Mutex::new(Decoder::new(SampleRate::Hz48000, Channels::Stereo).unwrap())) } } }