Remove unused supported_formats_err function
This commit is contained in:
parent
dc6c5c5a7c
commit
cc70a10c12
|
@ -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()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue