]> git.lyx.org Git - features.git/blobdiff - src/graphics/GraphicsCacheItem_pimpl.C
get rid of dead code, some new functions constify variables.
[features.git] / src / graphics / GraphicsCacheItem_pimpl.C
index d13c7d37b568575abce04a673d860d0ea42cec87..293cf2f9adea2cd204b3a457e2c050069efe1eb4 100644 (file)
@@ -13,8 +13,6 @@
 
 #include <map>
 
-#include <unistd.h> // unlink
-
 #include FORMS_H_LOCATION
 
 #ifdef __GNUG__
@@ -150,7 +148,7 @@ GraphicsCacheItem_pimpl::loadXPMImage()
        }
 
        // remove the xpm file now.
-       ::unlink(xpmfile.c_str());
+       lyx::unlink(xpmfile);
        // and remove the reference to the filename.
        xpmfile = string();
 }