summaryrefslogtreecommitdiff
path: root/storage/xtradb
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-07-24 19:41:59 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2019-07-24 19:41:59 +0300
commit86767f4ac15db953c85a94ed81cd374c653e79dd (patch)
tree667057ef9723ab064607b18d33a51162a08cc3c5 /storage/xtradb
parentc83663e574ecd338cf9b86b21f3e198c5ec06d47 (diff)
downloadmariadb-git-86767f4ac15db953c85a94ed81cd374c653e79dd.tar.gz
Remove unused ut_get_year_month_day()
Diffstat (limited to 'storage/xtradb')
-rw-r--r--storage/xtradb/include/ut0ut.h10
-rw-r--r--storage/xtradb/ut/ut0ut.cc37
2 files changed, 1 insertions, 46 deletions
diff --git a/storage/xtradb/include/ut0ut.h b/storage/xtradb/include/ut0ut.h
index 8bef1540255..1a378815c95 100644
--- a/storage/xtradb/include/ut0ut.h
+++ b/storage/xtradb/include/ut0ut.h
@@ -1,6 +1,7 @@
/*****************************************************************************
Copyright (c) 1994, 2017, Oracle and/or its affiliates. All Rights Reserved.
+Copyright (c) 2019, MariaDB Corporation.
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
@@ -343,15 +344,6 @@ void
ut_sprintf_timestamp_without_extra_chars(
/*=====================================*/
char* buf); /*!< in: buffer where to sprintf */
-/**********************************************************//**
-Returns current year, month, day. */
-UNIV_INTERN
-void
-ut_get_year_month_day(
-/*==================*/
- ulint* year, /*!< out: current year */
- ulint* month, /*!< out: month */
- ulint* day); /*!< out: day */
#else /* UNIV_HOTBACKUP */
/*************************************************************//**
Runs an idle loop on CPU. The argument gives the desired delay
diff --git a/storage/xtradb/ut/ut0ut.cc b/storage/xtradb/ut/ut0ut.cc
index eda3921c5de..2aca4d4a3e0 100644
--- a/storage/xtradb/ut/ut0ut.cc
+++ b/storage/xtradb/ut/ut0ut.cc
@@ -368,43 +368,6 @@ ut_sprintf_timestamp_without_extra_chars(
cal_tm_ptr->tm_sec);
#endif
}
-
-/**********************************************************//**
-Returns current year, month, day. */
-UNIV_INTERN
-void
-ut_get_year_month_day(
-/*==================*/
- ulint* year, /*!< out: current year */
- ulint* month, /*!< out: month */
- ulint* day) /*!< out: day */
-{
-#ifdef __WIN__
- SYSTEMTIME cal_tm;
-
- GetLocalTime(&cal_tm);
-
- *year = (ulint) cal_tm.wYear;
- *month = (ulint) cal_tm.wMonth;
- *day = (ulint) cal_tm.wDay;
-#else
- struct tm* cal_tm_ptr;
- time_t tm;
-
-#ifdef HAVE_LOCALTIME_R
- struct tm cal_tm;
- time(&tm);
- localtime_r(&tm, &cal_tm);
- cal_tm_ptr = &cal_tm;
-#else
- time(&tm);
- cal_tm_ptr = localtime(&tm);
-#endif
- *year = (ulint) cal_tm_ptr->tm_year + 1900;
- *month = (ulint) cal_tm_ptr->tm_mon + 1;
- *day = (ulint) cal_tm_ptr->tm_mday;
-#endif
-}
#endif /* UNIV_HOTBACKUP */
#ifndef UNIV_HOTBACKUP