From 329db61beeffad8046b6f860d0e22085b5cd0518 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 1 Mar 2023 12:29:41 +1000 Subject: [PATCH] eis: remove now-unused macro --- src/libeis-client.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/libeis-client.c b/src/libeis-client.c index b9e7786..6a6cd5b 100644 --- a/src/libeis-client.c +++ b/src/libeis-client.c @@ -279,14 +279,6 @@ eis_client_setup_done(struct eis_client *client, const char *name, bool is_sende */ } -#define DISCONNECT_IF_RECEIVER_CONTEXT(client_) do { \ - if (!(client_)->is_sender) { \ - struct eis *_ctx = eis_client_get_context(client_); \ - log_bug_client(_ctx, "Invalid event from receiver ei context. Disconnecting client"); \ - return -EINVAL; \ - } \ -} while(0) - static struct brei_result * client_msg_disconnect(struct eis_connection *connection) {