changeset 33086:1b9f989855f3

Remove needless variable. Use passed parameter directly instead.
author ib
date Fri, 01 Apr 2011 10:58:04 +0000
parents ae558e6f7a57
children ca17f301336d
files gui/skin/skin.c
diffstat 1 files changed, 5 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/gui/skin/skin.c	Fri Apr 01 10:36:11 2011 +0000
+++ b/gui/skin/skin.c	Fri Apr 01 10:58:04 2011 +0000
@@ -808,8 +808,6 @@
 // decoration=enable|disable
 static int cmd_decoration(char *in)
 {
-    char tmp[512];
-
     if (!window_cmd("decoration"))
         return 1;
 
@@ -820,19 +818,19 @@
     if (in_window("menu"))
         return 1;
 
-    cutItem(strlower(in), tmp, ',', 0);
+    strlower(in);
 
-    if (strcmp(tmp, "enable") != 0 && strcmp(tmp, "disable") != 0) {
-        skin_error(MSGTR_SKIN_UnknownParameter, tmp);
+    if (strcmp(in, "enable") != 0 && strcmp(in, "disable") != 0) {
+        skin_error(MSGTR_SKIN_UnknownParameter, in);
         return 1;
     }
 
-    if (strcmp(tmp, "enable") != 0)
+    if (strcmp(in, "enable") != 0)
         skin->mainDecoration = 0;
     else
         skin->mainDecoration = 1;
 
-    mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin]    decoration: %s\n", tmp);
+    mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[skin]    decoration: %s\n", in);
 
     return 0;
 }