Remove unused supported_formats_err function
This commit is contained in:
parent
dc6c5c5a7c
commit
cc70a10c12
1 changed files with 0 additions and 13 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue