From 8536ff2d45216914e01678adf6fdb67fbe7e1324 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Sun, 16 Apr 2023 14:37:10 +0200 Subject: gpgme: Remove code handling versions prior to required version --- src/gpgme.cc | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src') diff --git a/src/gpgme.cc b/src/gpgme.cc index 4f949c8c..0358f44d 100644 --- a/src/gpgme.cc +++ b/src/gpgme.cc @@ -136,15 +136,9 @@ shared_ptr decrypted_stream_t::decrypt(shared_ptr enc_d) { ctx = nullptr; dec_d = enc_d; } else { -#if GPGME_VERSION_NUMBER < 0x010d00 - ctx = unique_ptr(Context::createForProtocol(enc_d->type() == Data::PGPEncrypted - ? Protocol::OpenPGP - : Protocol::CMS)); -#else ctx = Context::create(enc_d->type() == Data::PGPEncrypted ? Protocol::OpenPGP : Protocol::CMS); -#endif if (!ctx) throw runtime_error("Unable to establish decryption context"); @@ -167,11 +161,7 @@ static inline void init_lib() { } static inline void rewind(Data * d) { -#if GPGME_VERSION_NUMBER < 0x010c00 - d->seek(0, SEEK_SET); -#else d->rewind(); -#endif } istream* decrypted_stream_t::open_stream(const path& filename) { -- cgit v1.2.3