diff options
author | Davi Arnaut <davi.arnaut@oracle.com> | 2010-07-23 17:14:35 -0300 |
---|---|---|
committer | Davi Arnaut <davi.arnaut@oracle.com> | 2010-07-23 17:14:35 -0300 |
commit | 7a221fc9a30888fc30bd0ef79445829896572d97 (patch) | |
tree | 34993c1eeb34970e4c3ffef7f0a41b6e14095d89 /mysys/my_dup.c | |
parent | e7dd11f0bef0e31fad7063ac8b2c6df3bb575436 (diff) | |
download | mariadb-git-7a221fc9a30888fc30bd0ef79445829896572d97.tar.gz |
WL#5498: Remove dead and unused source code
Remove unused source code and associated paraphernalia.
Diffstat (limited to 'mysys/my_dup.c')
-rw-r--r-- | mysys/my_dup.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/mysys/my_dup.c b/mysys/my_dup.c deleted file mode 100644 index 5fdd6e9f364..00000000000 --- a/mysys/my_dup.c +++ /dev/null @@ -1,41 +0,0 @@ -/* Copyright (C) 2000 MySQL AB - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; version 2 of the License. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ - -#include "mysys_priv.h" -#include "mysys_err.h" -#include <my_dir.h> -#include <errno.h> -#if defined(__WIN__) -#include <share.h> -#endif - - /* Open a file */ - -File my_dup(File file, myf MyFlags) -{ - File fd; - const char *filename; - DBUG_ENTER("my_dup"); - DBUG_PRINT("my",("file: %d MyFlags: %d", file, MyFlags)); -#ifdef _WIN32 - fd= my_win_dup(file); -#else - fd= dup(file); -#endif - filename= (((uint) file < my_file_limit) ? - my_file_info[(int) file].name : "Unknown"); - DBUG_RETURN(my_register_filename(fd, filename, FILE_BY_DUP, - EE_FILENOTFOUND, MyFlags)); -} /* my_open */ |