X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2c2d94471739d82e9cbd370711f73377e0b17717..5ec2b80b686983f84ebab7c7398a29e73286deee:/src/surf/surf_interface.cpp diff --git a/src/surf/surf_interface.cpp b/src/surf/surf_interface.cpp index 9349d6664a..77046196b4 100644 --- a/src/surf/surf_interface.cpp +++ b/src/surf/surf_interface.cpp @@ -16,10 +16,6 @@ #include #include -#ifdef _WIN32 -#include -#endif - XBT_LOG_NEW_CATEGORY(surf, "All SURF categories"); XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_kernel, surf, "Logging specific to SURF (kernel)"); @@ -95,18 +91,7 @@ const std::vector surf_optimization_mode_description = /* returns whether #file_path is an absolute file path. Surprising, isn't it ? */ static bool is_absolute_file_path(const std::string& file_path) { -#ifdef _WIN32 - WIN32_FIND_DATA wfd = {0}; - HANDLE hFile = FindFirstFile(file_path.c_str(), &wfd); - - if (INVALID_HANDLE_VALUE == hFile) - return false; - - FindClose(hFile); - return true; -#else return (file_path.c_str()[0] == '/'); -#endif } std::ifstream* surf_ifsopen(const std::string& name)