mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-14 12:55:47 +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:
@@ -401,11 +401,7 @@ int main(int argc, char **argv)
|
|||||||
WMWritePropListToFile(style, path);
|
WMWritePropListToFile(style, path);
|
||||||
wfree(path);
|
wfree(path);
|
||||||
} else {
|
} else {
|
||||||
if (style_file) {
|
puts(WMGetPropListDescription(style, True));
|
||||||
WMWritePropListToFile(style, style_file);
|
|
||||||
} else {
|
|
||||||
puts(WMGetPropListDescription(style, True));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user