Skip to content

Commit

Permalink
Rollback MovableRefUtil copy
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeny Malygin <emalygin@bloomberg.net>
  • Loading branch information
678098 committed Jul 23, 2024
1 parent 6c94a4d commit 82ae22c
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/groups/bmq/bmqt/bmqt_queueoptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@ class QueueOptions {
/// Assign to this object the value of the specified `rhs` object.
QueueOptions& operator=(const QueueOptions& rhs);

/// Assign to this object the value of the specified `rhs` object.
QueueOptions& operator=(bslmf::MovableRef<QueueOptions> rhs);

/// Set the maxUnconfirmedMessages to the specified `value`. The
/// behavior is undefined unless `value >= 0`. If the specified `value`
/// is set to 0, it means that the consumer does not receive any
Expand Down Expand Up @@ -283,21 +280,6 @@ inline QueueOptions& QueueOptions::operator=(const QueueOptions& rhs)
return *this;
}

inline QueueOptions&
QueueOptions::operator=(bslmf::MovableRef<QueueOptions> rhs)
{
d_info = bslmf::MovableRefUtil::move(
bslmf::MovableRefUtil::access(rhs).d_info);
d_suspendsOnBadHostHealth = bslmf::MovableRefUtil::move(
bslmf::MovableRefUtil::access(rhs).d_suspendsOnBadHostHealth);
d_subscriptions = bslmf::MovableRefUtil::move(
bslmf::MovableRefUtil::access(rhs).d_subscriptions);
d_hadSubscriptions = bslmf::MovableRefUtil::access(rhs).d_hadSubscriptions;
d_allocator_p = bslmf::MovableRefUtil::access(rhs).d_allocator_p;

return *this;
}

inline QueueOptions& QueueOptions::setMaxUnconfirmedMessages(int value)
{
d_info.setMaxUnconfirmedMessages(value);
Expand Down

0 comments on commit 82ae22c

Please sign in to comment.