Remove unused supported_formats_err function

This commit is contained in:
mitchmindtree 2019-06-29 03:45:16 +10:00
parent dc6c5c5a7c
commit cc70a10c12
1 changed files with 0 additions and 13 deletions

View File

@ -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()
}
}
}