Skip to content

Commit 832feda

Browse files
committed
Simplify header
1 parent 5e159b1 commit 832feda

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

include/pulsar/EncryptionContext.h

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@ struct PULSAR_PUBLIC EncryptionKey {
5252
*/
5353
class PULSAR_PUBLIC EncryptionContext {
5454
public:
55-
explicit EncryptionContext() = default;
56-
EncryptionContext(const EncryptionContext&) = default;
57-
EncryptionContext(EncryptionContext&&) noexcept = default;
58-
EncryptionContext& operator=(const EncryptionContext&) = default;
59-
EncryptionContext& operator=(EncryptionContext&&) noexcept = default;
60-
6155
using KeysType = std::vector<EncryptionKey>;
6256

6357
/**
@@ -100,9 +94,11 @@ class PULSAR_PUBLIC EncryptionContext {
10094
*/
10195
bool isDecryptionFailed() const noexcept { return isDecryptionFailed_; }
10296

103-
// It should be used only internally but it's exposed so that `std::make_optional` can construct the
104-
// object in place with this constructor.
105-
EncryptionContext(const proto::MessageMetadata& metadata, bool isDecryptionFailed);
97+
/**
98+
* It should be used only internally but it's exposed so that `std::make_optional` can construct the
99+
* object in place with this constructor.
100+
*/
101+
EncryptionContext(const proto::MessageMetadata&, bool);
106102

107103
private:
108104
KeysType keys_;

0 commit comments

Comments
 (0)