summaryrefslogtreecommitdiff
path: root/storage/innobase/ut
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-07-24 21:43:19 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2019-07-24 21:59:26 +0300
commit0c7c61019d89aae46632016f83562b72406dc49b (patch)
tree64941633969de1a01daa4b05351067ad299ccafa /storage/innobase/ut
parentc663a9414b3fda92faeb5f7fefc866c55cf06dbd (diff)
downloadmariadb-git-0c7c61019d89aae46632016f83562b72406dc49b.tar.gz
Remove the wrappers ut_time(), ut_difftime(), ib_time_t
Diffstat (limited to 'storage/innobase/ut')
-rw-r--r--storage/innobase/ut/ut0ut.cc29
1 files changed, 0 insertions, 29 deletions
diff --git a/storage/innobase/ut/ut0ut.cc b/storage/innobase/ut/ut0ut.cc
index 95a7957579e..6e4061bc7dd 100644
--- a/storage/innobase/ut/ut0ut.cc
+++ b/storage/innobase/ut/ut0ut.cc
@@ -44,21 +44,6 @@ Created 5/11/1994 Heikki Tuuri
# include "ha_prototypes.h"
# include "mysql_com.h" /* NAME_LEN */
# include <string>
-#endif /* UNIV_HOTBACKUP */
-
-/**********************************************************//**
-Returns system time. We do not specify the format of the time returned:
-the only way to manipulate it is to use the function ut_difftime.
-@return system time */
-UNIV_INTERN
-ib_time_t
-ut_time(void)
-/*=========*/
-{
- return(time(NULL));
-}
-
-#ifndef UNIV_HOTBACKUP
/**********************************************************//**
Returns the number of milliseconds since some epoch. The
value may wrap around. It should only be used for heuristic
@@ -72,20 +57,6 @@ ut_time_ms(void)
return static_cast<ulint>(my_interval_timer() / 1000000);
}
#endif /* !UNIV_HOTBACKUP */
-
-/**********************************************************//**
-Returns the difference of two times in seconds.
-@return time2 - time1 expressed in seconds */
-UNIV_INTERN
-double
-ut_difftime(
-/*========*/
- ib_time_t time2, /*!< in: time */
- ib_time_t time1) /*!< in: time */
-{
- return(difftime(time2, time1));
-}
-
#endif /* !UNIV_INNOCHECKSUM */
/**********************************************************//**