cleanup: Drop useless conditions

This commit is contained in:
Bilal Elmoussaoui 2023-04-13 15:04:40 +02:00
parent 188c63a183
commit b4fade7fe1
2 changed files with 2 additions and 4 deletions

View File

@ -185,8 +185,7 @@ mks_display_legacy_event_cb (MksDisplay *self,
if (priv->screen == NULL) if (priv->screen == NULL)
return GDK_EVENT_PROPAGATE; return GDK_EVENT_PROPAGATE;
if (FALSE) {} if (event_type == GDK_BUTTON_PRESS)
else if (event_type == GDK_BUTTON_PRESS)
{ {
if (priv->inhibitor == NULL) if (priv->inhibitor == NULL)
{ {

View File

@ -62,8 +62,7 @@ mks_keyboard_keyboard_notify_cb (MksKeyboard *self,
g_assert (pspec != NULL); g_assert (pspec != NULL);
g_assert (MKS_QEMU_IS_KEYBOARD (keyboard)); g_assert (MKS_QEMU_IS_KEYBOARD (keyboard));
if (FALSE) {} if (strcmp (pspec->name, "modifiers") == 0)
else if (strcmp (pspec->name, "modifiers") == 0)
{ {
self->modifiers = mks_qemu_keyboard_get_modifiers (keyboard); self->modifiers = mks_qemu_keyboard_get_modifiers (keyboard);
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_MODIFIERS]); g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_MODIFIERS]);