summaryrefslogtreecommitdiff
path: root/mysys/my_rename.c
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2012-07-31 19:29:07 +0200
committerSergei Golubchik <sergii@pisem.net>2012-07-31 19:29:07 +0200
commit0117a92fedc2e5294682127d54034af5b3f96c8e (patch)
tree0c075a3fa43f64a3895acc704bacf69a96afda14 /mysys/my_rename.c
parent42ea25d4c51b5466b4b03a29abe480e763732cf2 (diff)
downloadmariadb-git-0117a92fedc2e5294682127d54034af5b3f96c8e.tar.gz
MDEV-419 ensure that all HAVE_XXX constants can be set by cmake
add missing checks to configure.cmake remove dead code and unused HAVE_xxx constants from the sources
Diffstat (limited to 'mysys/my_rename.c')
-rw-r--r--mysys/my_rename.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/mysys/my_rename.c b/mysys/my_rename.c
index 6704d7c87d0..b89bc4c8fbd 100644
--- a/mysys/my_rename.c
+++ b/mysys/my_rename.c
@@ -27,22 +27,6 @@ int my_rename(const char *from, const char *to, myf MyFlags)
DBUG_ENTER("my_rename");
DBUG_PRINT("my",("from %s to %s MyFlags %d", from, to, MyFlags));
-#if defined(HAVE_FILE_VERSIONS)
- { /* Check that there isn't a old file */
- int save_errno;
- MY_STAT my_stat_result;
- save_errno=my_errno;
- if (my_stat(to,&my_stat_result,MYF(0)))
- {
- my_errno=EEXIST;
- error= -1;
- if (MyFlags & MY_FAE+MY_WME)
- my_error(EE_LINK, MYF(ME_BELL+ME_WAITTANG),from,to,my_errno);
- DBUG_RETURN(error);
- }
- my_errno=save_errno;
- }
-#endif
#if defined(HAVE_RENAME)
#if defined(__WIN__)
/*