summaryrefslogtreecommitdiff
path: root/src/input.c
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-11-23 11:41:51 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-11-23 11:41:51 +0100
commit6b217280ab6027977bbe352ce29e1462c9c3a988 (patch)
treed96790ded23d1769a48465c1d2c67054c2270d9a /src/input.c
parentcdaf79eb0a038e6e7c7b127b4e0b79712119a5e7 (diff)
downloadratpoison-6b217280ab6027977bbe352ce29e1462c9c3a988.zip
Kill keysym_to_keycodes, commented out since 2006
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/input.c b/src/input.c
index 51443e8..a81c1af 100644
--- a/src/input.c
+++ b/src/input.c
@@ -124,47 +124,6 @@ keycode_to_keysym(Display *dpy, KeyCode kc, int group, int level)
return XKeycodeToKeysym (dpy, kc, level);
}
-/* /\* The caller is responsible for freeing the keycodes. *\/ */
-/* KeyCode * */
-/* keysym_to_keycodes (KeySym sym, int *n_returned) */
-/* { */
-/* int min_code, max_code; */
-/* int syms_per_code; */
-/* KeySym *syms; */
-/* KeyCode *codes; */
-/* int code, code_col; */
-
-/* XDisplayKeycodes (dpy, &min_code, &max_code); */
-/* syms = XGetKeyboardMapping (dpy, */
-/* min_code, max_code - min_code + 1, */
-/* &syms_per_code); */
-
-/* *n_returned = 0; */
-/* codes = xmalloc (sizeof(KeyCode) * n_returned); */
-/* for (code = min_code; code < max_code; code++) */
-/* for (code_col = 0; code_col < syms_per_code; code_col++) */
-/* { */
-/* int s = syms[((code - min_code) * syms_per_code) + code_col]; */
-
-/* if (sym == s) */
-/* { */
-/* n_returned++; */
-/* codes = xrealloc (sizeof(KeyCode) * n_returned); */
-/* codes[n_returned-1] = code; */
-/* } */
-/* } */
-
-/* XFree ((char *) syms); */
-
-/* if (n_returned > 0) */
-/* return codes; */
-/* else */
-/* { */
-/* xfree (codes) */
-/* return NULL; */
-/* } */
-/* } */
-
/* Figure out what keysyms are attached to what modifiers */
void
update_modifier_map (void)