From e06b3005e833d4c34f9b5671daa0cc44f4f9ea52 Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Sun, 15 Jan 2012 14:17:27 +0000 Subject: [PATCH] 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. --- util/getstyle.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/util/getstyle.c b/util/getstyle.c index 7b740396..a988946b 100644 --- a/util/getstyle.c +++ b/util/getstyle.c @@ -401,11 +401,7 @@ int main(int argc, char **argv) WMWritePropListToFile(style, path); wfree(path); } else { - if (style_file) { - WMWritePropListToFile(style, style_file); - } else { - puts(WMGetPropListDescription(style, True)); - } + puts(WMGetPropListDescription(style, True)); } return 0; }