From 48ddf9727b34d7e5d2ab705f03317958bb036925 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Fri, 16 Aug 2019 18:12:15 +0200 Subject: [PATCH] Removed some file functions --- os_dep/osdep_service.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/os_dep/osdep_service.c b/os_dep/osdep_service.c index c67a3b7..e73a546 100644 --- a/os_dep/osdep_service.c +++ b/os_dep/osdep_service.c @@ -2302,15 +2302,8 @@ static int storeToFile(const char *path, u8 *buf, u32 sz) */ int rtw_is_file_readable(const char *path) { -#ifdef PLATFORM_LINUX - if (isFileReadable(path, NULL) == 0) - return _TRUE; - else - return _FALSE; -#else /* Todo... */ return _FALSE; -#endif } /* @@ -2341,13 +2334,8 @@ int rtw_is_file_readable_with_size(const char *path, u32 *sz) */ int rtw_retrieve_from_file(const char *path, u8 *buf, u32 sz) { -#ifdef PLATFORM_LINUX - int ret = retriveFromFile(path, buf, sz); - return ret >= 0 ? ret : 0; -#else /* Todo... */ return 0; -#endif } /* @@ -2359,13 +2347,8 @@ int rtw_retrieve_from_file(const char *path, u8 *buf, u32 sz) */ int rtw_store_to_file(const char *path, u8 *buf, u32 sz) { -#ifdef PLATFORM_LINUX - int ret = storeToFile(path, buf, sz); - return ret >= 0 ? ret : 0; -#else /* Todo... */ return 0; -#endif } #ifdef PLATFORM_LINUX