From 61d2d4ab6aee46a1aacaa72664f834442e5092d9 Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Tue, 19 Feb 2019 14:09:52 +0100 Subject: [PATCH] msg/async, v2: drop reserve() from onwire crypto's TxHandler. Signed-off-by: Radoslaw Zarzynski --- src/msg/async/crypto_onwire.cc | 4 ---- src/msg/async/crypto_onwire.h | 4 ---- 2 files changed, 8 deletions(-) diff --git a/src/msg/async/crypto_onwire.cc b/src/msg/async/crypto_onwire.cc index 51b65f02a5f..e04b63800ca 100644 --- a/src/msg/async/crypto_onwire.cc +++ b/src/msg/async/crypto_onwire.cc @@ -63,10 +63,6 @@ public: void reset_tx_handler( std::initializer_list update_size_sequence) override; - ceph::bufferlist::contiguous_filler reserve(const std::uint32_t size) override { - return buffer.append_hole(size); - } - void authenticated_encrypt_update(const ceph::bufferlist& plaintext) override; ceph::bufferlist authenticated_encrypt_final() override; }; diff --git a/src/msg/async/crypto_onwire.h b/src/msg/async/crypto_onwire.h index fd676c5347f..4917c367522 100644 --- a/src/msg/async/crypto_onwire.h +++ b/src/msg/async/crypto_onwire.h @@ -59,10 +59,6 @@ struct TxHandler { virtual void reset_tx_handler( std::initializer_list update_size_sequence) = 0; - // Reserve n bytes in the bufferlist being crafted by TxHandler. - // TODO: this will be dropped altogether with new frame format - virtual ceph::bufferlist::contiguous_filler reserve(std::uint32_t) = 0; - // Perform encryption. Client gives full ownership right to provided // bufferlist. The method MUST NOT be called after _final() if there // was no call to _reset(). -- 2.39.5