summaryrefslogtreecommitdiff
path: root/sql-common/my_time.c
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-09-03 14:04:17 +0200
committerSergei Golubchik <serg@mariadb.org>2016-09-12 17:51:50 +0200
commitece01ef3dc89d20198efbaec40e7114fdb515338 (patch)
tree7f3c1f1ee812b8bf8fa98fee94103dae4d7afa0d /sql-common/my_time.c
parent12067633fb44205777e2e9f401bbcb3242bafd66 (diff)
downloadmariadb-git-ece01ef3dc89d20198efbaec40e7114fdb515338.tar.gz
After-review changes
* remove redundant code * fix tests * move declarations and defines where they belong
Diffstat (limited to 'sql-common/my_time.c')
-rw-r--r--sql-common/my_time.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sql-common/my_time.c b/sql-common/my_time.c
index 5fcb07e45c0..450a0fca775 100644
--- a/sql-common/my_time.c
+++ b/sql-common/my_time.c
@@ -777,10 +777,6 @@ long calc_daynr(uint year,uint month,uint day)
DBUG_RETURN(delsum+(int) y/4-temp);
} /* calc_daynr */
-/* Can't include mysqld_error.h, it needs mysys to build, thus hardcode 2 error values here. */
-#define ER_WARN_DATA_OUT_OF_RANGE 1264
-#define ER_WARN_INVALID_TIMESTAMP 1299
-
/*
Convert time in MYSQL_TIME representation in system time zone to its
my_time_t form (number of seconds in UTC since begginning of Unix Epoch).