aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-03-12 10:50:51 +0000
committerWerner Koch <[email protected]>2018-03-12 10:50:51 +0000
commit863948ab29d1016a271fd7e6d48af316dad4e939 (patch)
tree2833107acbb4237c81dd5b019cdf57d1e581d573
parentcore: Do not export the process API (diff)
downloadlibgpg-error-863948ab29d1016a271fd7e6d48af316dad4e939.tar.gz
libgpg-error-863948ab29d1016a271fd7e6d48af316dad4e939.zip
core: Remove accidently committed time function API.
-- Fixes-commit: f9a33a7f7e44a644ff4e31f7e9f1c2c1ec1f8eee
-rw-r--r--src/gpg-error.h.in31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/gpg-error.h.in b/src/gpg-error.h.in
index dc6f637..e78a6f1 100644
--- a/src/gpg-error.h.in
+++ b/src/gpg-error.h.in
@@ -1078,37 +1078,6 @@ void gpgrt_release_process (pid_t pid);
#endif /*0*/
-/*
- * Time functions
- */
-
-/* Our representation of time requires 8 byte. The value guaranteed
- * to be a C string with no '\n' in it. The time is always UTC. */
-typedef unsigned char gpgrt_time_t[8];
-
-/* Check that ATIME is a valid time. */
-gpg_err_code_t gpgrt_check_time (const gpgrt_time_t atime);
-
-/* Convert time into a Julian Date. Returns 0 for invalid dates. */
-unsigned int gpgrt_time2jd (const gpgrt_time_t atime, int *r_seconds);
-
-/* Convert the Julian Date (JD,SECS) into a time. If SECS is -1 noon
- * is assumed. */
-void gpgrt_jd2time (gpgrt_time_t atime, unsigned int jd, int secs);
-
-/* Convert a time into a Julian Date and return it as a float with
- * fractional seconds. */
-static GPG_ERR_INLINE double
-gpgrt_time2jd_dbl (const gpgrt_time_t atime)
-{
- unsigned int jd;
- int secs;
- jd = gpgrt_time2jd (atime, &secs);
- return jd + (secs/86400.0);
-}
-
-
-
#ifdef __cplusplus
}
#endif