From 863948ab29d1016a271fd7e6d48af316dad4e939 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 12 Mar 2018 11:50:51 +0100 Subject: core: Remove accidently committed time function API. -- Fixes-commit: f9a33a7f7e44a644ff4e31f7e9f1c2c1ec1f8eee --- src/gpg-error.h.in | 31 ------------------------------- 1 file changed, 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 -- cgit v1.2.3