Remove never-set variable net_state_from_client
commita13eb4e9205c8c214fe2f1c4c7be2760f4582003
authorRodolfo García Peñas (kix) <kix@kix.es>
Mon, 25 Jun 2012 19:53:23 +0000 (25 21:53 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 26 Jun 2012 09:38:53 +0000 (26 10:38 +0100)
tree22eb58735c829ae99aee3830e78b1fe9e1463fd1
parentdd94b98b814038e720fe46669c84802c8ca0b051
Remove never-set variable net_state_from_client

Even though net_state_from_client was never being set, it was
being tested inside a

if (!wwin->flags.net_state_from_client)

which according to testing was always being true (probably because gcc
initializes it to zero). But this situation is confusing, so it's
better to remove the if() test altogether as that is the intention
if net_state_from_client is not explicitly set (which it isn't in
the current wmaker source).

This situation is analogous to:

[mafra@Pilar:c]$ cat init.c

int main(void)
{
int a;

if (!a)
printf("No a = %d\n", a);
        return 0;
}
[mafra@Pilar:c]$ ./init
No a = 0
src/window.h
src/wmspec.c