From cc70a10c121e4120dafde5022eeae0271320fadc Mon Sep 17 00:00:00 2001 From: mitchmindtree Date: Sat, 29 Jun 2019 03:45:16 +1000 Subject: [PATCH] Remove unused supported_formats_err function --- src/host/asio/device.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/host/asio/device.rs b/src/host/asio/device.rs index c8566e0..9acf425 100644 --- a/src/host/asio/device.rs +++ b/src/host/asio/device.rs @@ -185,16 +185,3 @@ fn default_format_err(e: sys::AsioError) -> DefaultFormatError { } } } - -fn supported_formats_err(e: sys::AsioError) -> SupportedFormatsError { - match e { - sys::AsioError::NoDrivers | - sys::AsioError::HardwareMalfunction => SupportedFormatsError::DeviceNotAvailable, - sys::AsioError::InvalidInput | - sys::AsioError::BadMode => SupportedFormatsError::InvalidArgument, - err => { - let description = format!("{}", err); - BackendSpecificError { description }.into() - } - } -}