mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
branches/zip: os_file_close_no_error_handling(): Unused, remove.
This commit is contained in:
parent
9165e0b89d
commit
3a2a5e5e03
2 changed files with 0 additions and 43 deletions
|
@ -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
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…
Add table
Reference in a new issue