Signed-off-by: Christophe CURIS <christophe.cu...@free.fr>

Again, not reported by Coverity (it did report a few unused variables, but they 
are really rare)


----- David Maciejak <david.macie...@gmail.com> a écrit :
> 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


--
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to