Skip to content

Commit f3a7dff

Browse files
jasnellYour Name
authored andcommitted
quic: remove unused operator overload
PR-URL: nodejs#366 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]>
1 parent 38e19e8 commit f3a7dff

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/quic/node_quic_util-inl.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ size_t QuicCID::Hash::operator()(const QuicCID& token) const {
4242
return hash;
4343
}
4444

45-
QuicCID& QuicCID::operator=(const QuicCID& cid) {
46-
if (this == &cid) return *this;
47-
this->~QuicCID();
48-
return *new(this) QuicCID(std::move(cid));
49-
}
50-
5145
bool QuicCID::operator==(const QuicCID& other) const {
5246
return memcmp(cid()->data, other.cid()->data, cid()->datalen) == 0;
5347
}

src/quic/node_quic_util.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ class QuicCID : public MemoryRetainer {
297297

298298
inline bool operator==(const QuicCID& other) const;
299299
inline bool operator!=(const QuicCID& other) const;
300-
inline QuicCID& operator=(const QuicCID& cid);
301300
const ngtcp2_cid& operator*() const { return *ptr_; }
302301
const ngtcp2_cid* operator->() const { return ptr_; }
303302

0 commit comments

Comments
 (0)