From d19bea52afe6efb66a46af6aa4d09928c5d05ee5 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 2 Feb 2017 09:50:47 +0100 Subject: core: Un-deprecate gpgme_data_rewind. * src/gpgme.h.in (gpgme_data_rewind): Un-deprecate. * src/data-compat.c (gpgme_data_rewind): Move to ... * src/data.c (gpgme_data_rewind): here. -- That function is very convenient because it is required a lot with memory streams. It also documents the intention of the caller better than gpgme_data_seek with its addition parameters and the need to map system errors. Thus it does not make sense to make it a first class citizen again. Signed-off-by: Werner Koch --- src/data-compat.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/data-compat.c') diff --git a/src/data-compat.c b/src/data-compat.c index 5c7d5431..87eaeef5 100644 --- a/src/data-compat.c +++ b/src/data-compat.c @@ -239,16 +239,3 @@ gpgme_data_new_with_read_cb (gpgme_data_t *r_dh, (*r_dh)->data.old_user.handle = read_cb_value; return TRACE_ERR (0); } - - -gpgme_error_t -gpgme_data_rewind (gpgme_data_t dh) -{ - gpgme_error_t err; - TRACE_BEG (DEBUG_DATA, "gpgme_data_rewind", dh); - - err = ((gpgme_data_seek (dh, 0, SEEK_SET) == -1) - ? gpg_error_from_syserror () : 0); - - return TRACE_ERR (err); -} -- cgit v1.2.3