From 302a1941ab8e6ab1d2f6ade5d9f62482aa84a332 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Mon, 15 Dec 2014 16:41:57 +0100 Subject: [PATCH] Fix warnings --- src/lib.rs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9e1002c..6dc394b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -59,10 +59,6 @@ pub trait Sample: Copy { /// Turns the data into a `Vec` where each element is a sample. fn to_vec_u16(&[Self]) -> Vec; - - fn convert_channels_count(&[Self], from: u16, to: u16) -> Vec; - - fn convert_samples_rate(&[Self], from: SamplesRate, to: SamplesRate) -> Vec; } impl Sample for u16 { @@ -73,14 +69,6 @@ impl Sample for u16 { fn to_vec_u16(input: &[u16]) -> Vec { input.to_vec() } - - fn convert_channels_count(input: &[u16], from: u16, to: u16) -> Vec { - unimplemented!() - } - - fn convert_samples_rate(input: &[u16], _from: SamplesRate, _to: SamplesRate) -> Vec { - unimplemented!() - } } impl Channel { @@ -150,7 +138,7 @@ impl Channel { let intermediate_buffer_length = intermediate_buffer_length * samples_rate.0 as uint / target_samples_rate.0 as uint; // TODO: adapt size to samples format too - let mut intermediate_buffer = Vec::from_elem(intermediate_buffer_length, unsafe { std::mem::uninitialized() }); + let intermediate_buffer = Vec::from_elem(intermediate_buffer_length, unsafe { std::mem::uninitialized() }); Buffer { target: Some(target_buffer),