mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-05-05 12:28:02 +02:00
Remove some if 0 code
If 0-ed out in the switch to server-side devices, this can go now. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
95cca59647
commit
6f3a62f5d2
1 changed files with 0 additions and 34 deletions
|
|
@ -617,40 +617,6 @@ client_message_callback(struct brei_message *bmsg, void *userdata)
|
|||
|
||||
return eis_proto_handle_message(client, intf, bmsg);
|
||||
}
|
||||
#if 0
|
||||
struct eis_client *client = userdata;
|
||||
size_t consumed;
|
||||
|
||||
_cleanup_message_ struct message *msg = eis_proto_parse_message(bmsg, &consumed);
|
||||
if (!msg)
|
||||
return -EBADMSG;
|
||||
|
||||
log_debug(eis_client_parent(client),
|
||||
"handling message type %s\n", message_type_to_string(msg->type));
|
||||
|
||||
int rc = 0;
|
||||
switch (client->state) {
|
||||
case EIS_CLIENT_STATE_NEW:
|
||||
rc = client_new_handle_msg(client, msg);
|
||||
break;
|
||||
case EIS_CLIENT_STATE_CONNECTING:
|
||||
/* Client is waiting for us, shouldn't send anything
|
||||
* but disconnect */
|
||||
rc = client_connecting_handle_msg(client, msg);
|
||||
break;
|
||||
case EIS_CLIENT_STATE_CONNECTED:
|
||||
rc = client_connected_handle_msg(client, msg);
|
||||
break;
|
||||
case EIS_CLIENT_STATE_DISCONNECTED:
|
||||
abort();
|
||||
}
|
||||
|
||||
if (rc < 0)
|
||||
return rc;
|
||||
else
|
||||
return consumed;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
client_dispatch(struct source *source, void *userdata)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue