1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-17 14:45:49 +01:00

getstyle: Remove dead code

The statement under "if (style_file)" in the else branch of
"if (make_pack)" will never be executed because getstyle already
prints out a help message and exits before that.

So remove that code.
This commit is contained in:
Carlos R. Mafra
2012-01-15 14:17:27 +00:00
parent e4d0ea5373
commit e06b3005e8

View File

@@ -400,12 +400,8 @@ int main(int argc, char **argv)
strcat(path, "/style"); strcat(path, "/style");
WMWritePropListToFile(style, path); WMWritePropListToFile(style, path);
wfree(path); wfree(path);
} else {
if (style_file) {
WMWritePropListToFile(style, style_file);
} else { } else {
puts(WMGetPropListDescription(style, True)); puts(WMGetPropListDescription(style, True));
} }
}
return 0; return 0;
} }