branches/zip: os_file_close_no_error_handling(): Unused, remove.

This commit is contained in:
marko 2009-06-30 11:02:20 +00:00
parent 9165e0b89d
commit 3a2a5e5e03
2 changed files with 0 additions and 43 deletions

View file

@ -425,14 +425,6 @@ os_file_close(
/*==========*/
os_file_t file); /*!< in, own: handle to a file */
/***********************************************************************//**
Closes a file handle.
@return TRUE if success */
UNIV_INTERN
ibool
os_file_close_no_error_handling(
/*============================*/
os_file_t file); /*!< in, own: handle to a file */
/***********************************************************************//**
Gets a file size.
@return TRUE if success */
UNIV_INTERN

View file

@ -1644,41 +1644,6 @@ os_file_close(
#endif
}
/***********************************************************************//**
Closes a file handle.
@return TRUE if success */
UNIV_INTERN
ibool
os_file_close_no_error_handling(
/*============================*/
os_file_t file) /*!< in, own: handle to a file */
{
#ifdef __WIN__
BOOL ret;
ut_a(file);
ret = CloseHandle(file);
if (ret) {
return(TRUE);
}
return(FALSE);
#else
int ret;
ret = close(file);
if (ret == -1) {
return(FALSE);
}
return(TRUE);
#endif
}
/***********************************************************************//**
Gets a file size.
@return TRUE if success */