Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_theme.c 


Log Message:
- this stat call was taking a large amount of time, just remove the check
  and the warning.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_theme.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- ewl_theme.c 12 Jan 2006 18:21:19 -0000      1.20
+++ ewl_theme.c 27 Jan 2006 05:49:57 -0000      1.21
@@ -367,7 +367,6 @@
 ewl_theme_image_get(Ewl_Widget *w, char *k)
 {
        char *data;
-       struct stat st;
 
        DENTER_FUNCTION(DLEVEL_STABLE);
        DCHECK_PARAM_PTR_RET("w", w, NULL);
@@ -393,9 +392,6 @@
                data = strdup(path);
        }
 
-       if (((stat(data, &st)) == -1) || !S_ISREG(st.st_mode))
-               DWARNING("Couldn't stat image\n");
-
        DRETURN_PTR(data, DLEVEL_STABLE);
 }
 




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to