output/wasapi: remove unused function SafeTry()
This commit is contained in:
parent
4d9af9a81b
commit
cd53ca22c6
|
@ -85,17 +85,6 @@ gcc_const constexpr uint32_t GetChannelMask(const uint8_t channels) noexcept {
|
|||
}
|
||||
}
|
||||
|
||||
template <typename Functor>
|
||||
inline bool SafeTry(Functor &&functor) {
|
||||
try {
|
||||
functor();
|
||||
return true;
|
||||
} catch (...) {
|
||||
FormatError(std::current_exception(), "%s");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
template <typename Functor>
|
||||
inline bool SafeSilenceTry(Functor &&functor) {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue