aboutsummaryrefslogtreecommitdiff
path: root/kbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'kbd.c')
-rw-r--r--kbd.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/kbd.c b/kbd.c
deleted file mode 100644
index c38e77ba..00000000
--- a/kbd.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#include "kbd.h"
-
-#include <xkbcommon/xkbcommon-compose.h>
-
-void
-kbd_destroy(struct kbd *kbd)
-{
- if (kbd->xkb_compose_state != NULL)
- xkb_compose_state_unref(kbd->xkb_compose_state);
- if (kbd->xkb_compose_table != NULL)
- xkb_compose_table_unref(kbd->xkb_compose_table);
- if (kbd->xkb_keymap != NULL)
- xkb_keymap_unref(kbd->xkb_keymap);
- if (kbd->xkb_state != NULL)
- xkb_state_unref(kbd->xkb_state);
- if (kbd->xkb != NULL)
- xkb_context_unref(kbd->xkb);
-}