remove unused var and remove some commented code too

---
 src/misc.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/misc.c b/src/misc.c
index 92c1534..4d008a3 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -736,7 +736,6 @@ char *GetShortcutString(const char *shortcut)
 {
  char *buffer = NULL;
  char *k;
- int modmask = 0;
  /*    KeySym ksym; */
  int control = 0;
  char *tmp, *text;
@@ -753,8 +752,6 @@ char *GetShortcutString(const char *shortcut)
  return wstrdup("bug");
  }

- modmask |= mod;
-
  if (strcasecmp(text, "Meta") == 0) {
  buffer = wstrappend(buffer, "M+");
  } else if (strcasecmp(text, "Alt") == 0) {
@@ -783,13 +780,6 @@ char *GetShortcutString(const char *shortcut)
  buffer = wstrappend(buffer, "^");
  }
  buffer = wstrappend(buffer, text);
-
- /* get key */
- /*    ksym = XStringToKeysym(text);
-   tmp = keysymToString(ksym, modmask);
-   puts(tmp);
-   buffer = wstrappend(buffer, tmp);
- */
  wfree(tmp);

  return buffer;
-- 
1.8.3.2

Attachment: 0004-remove-unused-var-and-remove-some-commented-code-too.patch
Description: Binary data

Reply via email to