Browse Source

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

pull/73/head
marko 17 years ago
parent
commit
3a2a5e5e03
  1. 8
      include/os0file.h
  2. 35
      os/os0file.c

8
include/os0file.h

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

35
os/os0file.c

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

Loading…
Cancel
Save