Removed some file functions

This commit is contained in:
kimocoder 2019-08-16 18:12:15 +02:00
parent 24df579fcf
commit 48ddf9727b

View File

@ -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