From: Ilya Dryomov Date: Fri, 3 Apr 2020 13:34:19 +0000 (+0200) Subject: msg/async/crypto_onwire: remove TxHandler::calculate_segment_size() X-Git-Tag: v16.1.0~2001^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b3e39b1becfef93abbc604a78f832ffe03996af3;p=ceph.git msg/async/crypto_onwire: remove TxHandler::calculate_segment_size() It is unused and doesn't make much sense in TxHandler. Signed-off-by: Ilya Dryomov --- diff --git a/src/msg/async/crypto_onwire.cc b/src/msg/async/crypto_onwire.cc index 102c8a14e0cd..93f17ceb0d55 100644 --- a/src/msg/async/crypto_onwire.cc +++ b/src/msg/async/crypto_onwire.cc @@ -69,11 +69,6 @@ public: ::ceph::crypto::zeroize_for_security(&initial_nonce, sizeof(initial_nonce)); } - std::uint32_t calculate_segment_size(std::uint32_t size) override - { - return size; - } - void reset_tx_handler(const uint32_t* first, const uint32_t* last) override; void authenticated_encrypt_update(const ceph::bufferlist& plaintext) override; diff --git a/src/msg/async/crypto_onwire.h b/src/msg/async/crypto_onwire.h index b605951b80e4..0bc58dea0e54 100644 --- a/src/msg/async/crypto_onwire.h +++ b/src/msg/async/crypto_onwire.h @@ -53,8 +53,6 @@ struct TxHandlerError : public std::runtime_error { struct TxHandler { virtual ~TxHandler() = default; - virtual std::uint32_t calculate_segment_size(std::uint32_t size) = 0; - // Instance of TxHandler must be reset before doing any encrypt-update // step. This applies also to situation when encrypt-final was already // called and another round of update-...-update-final will take place.