diff options
author | Tom Lane | 2017-02-23 19:04:43 +0000 |
---|---|---|
committer | Tom Lane | 2017-02-23 19:04:43 +0000 |
commit | b9d092c962ea3262930e3c31a8c3d79b66ce9d43 (patch) | |
tree | dce85c309787c766f079c627b7f06fb5f284495b /contrib/btree_gist/btree_utils_num.h | |
parent | d28aafb6dda326688e2f042c95c93ea57963c03c (diff) |
Remove now-dead code for !HAVE_INT64_TIMESTAMP.
This is a basically mechanical removal of #ifdef HAVE_INT64_TIMESTAMP
tests and the negative-case controlled code.
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'contrib/btree_gist/btree_utils_num.h')
-rw-r--r-- | contrib/btree_gist/btree_utils_num.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/contrib/btree_gist/btree_utils_num.h b/contrib/btree_gist/btree_utils_num.h index a33491bc090..67d4968ba7b 100644 --- a/contrib/btree_gist/btree_utils_num.h +++ b/contrib/btree_gist/btree_utils_num.h @@ -82,17 +82,10 @@ typedef struct * (as a double). Here because we need it for time/timetz as well as * interval. See interval_cmp_internal for comparison. */ -#ifdef HAVE_INT64_TIMESTAMP #define INTERVAL_TO_SEC(ivp) \ (((double) (ivp)->time) / ((double) USECS_PER_SEC) + \ (ivp)->day * (24.0 * SECS_PER_HOUR) + \ (ivp)->month * (30.0 * SECS_PER_DAY)) -#else -#define INTERVAL_TO_SEC(ivp) \ - ((ivp)->time + \ - (ivp)->day * (24.0 * SECS_PER_HOUR) + \ - (ivp)->month * (30.0 * SECS_PER_DAY)) -#endif #define GET_FLOAT_DISTANCE(t, arg1, arg2) Abs( ((float8) *((const t *) (arg1))) - ((float8) *((const t *) (arg2))) ) |