mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 05:54:58 +00:00
LibAudio: Remove unused TRY-like macro
This was added, unused, in bc4d4f0f95
.
This commit is contained in:
parent
a1f9d2420f
commit
b98864e022
1 changed files with 0 additions and 10 deletions
|
@ -19,16 +19,6 @@
|
|||
|
||||
namespace Audio {
|
||||
|
||||
#define TRY_OR_REJECT_AND_STOP(expression, promise) \
|
||||
({ \
|
||||
auto&& __temporary_result = (expression); \
|
||||
if (__temporary_result.is_error()) [[unlikely]] { \
|
||||
(promise)->reject(__temporary_result.release_error()); \
|
||||
return 1; \
|
||||
} \
|
||||
__temporary_result.release_value(); \
|
||||
})
|
||||
|
||||
ErrorOr<NonnullRefPtr<PlaybackStream>> PlaybackStream::create(OutputState initial_output_state, u32 sample_rate, u8 channels, u32 target_latency_ms, AudioDataRequestCallback&& data_request_callback)
|
||||
{
|
||||
VERIFY(data_request_callback);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue