Code cleanup.
[ruby-evas.git] / src / rb_image.c
index a3b96b81629190d2556c92ea2b1f1287882d2eca..3cfe2731b331be768e6761d9e1151ce7e3ff685e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rb_image.c 376 2006-02-25 10:10:31Z tilman $
+ * $Id: rb_image.c 382 2006-05-25 09:20:31Z tilman $
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
@@ -84,12 +84,8 @@ static VALUE c_set_file (int argc, VALUE *argv, VALUE self)
 
        rb_scan_args (argc, argv, "11", &file, &key);
 
-       Check_Type (file, T_STRING);
-
-       if (!NIL_P (key)) {
-               Check_Type (key, T_STRING);
+       if (!NIL_P (key))
                k = StringValuePtr (key);
-       }
 
        evas_object_image_file_set (e->real, StringValuePtr (file), k);