summaryrefslogtreecommitdiffstats
path: root/messagebus/src/vespa/messagebus/routing/hopspec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'messagebus/src/vespa/messagebus/routing/hopspec.cpp')
-rw-r--r--messagebus/src/vespa/messagebus/routing/hopspec.cpp26
1 files changed, 7 insertions, 19 deletions
diff --git a/messagebus/src/vespa/messagebus/routing/hopspec.cpp b/messagebus/src/vespa/messagebus/routing/hopspec.cpp
index 0ea996982ed..7c8980b33b1 100644
--- a/messagebus/src/vespa/messagebus/routing/hopspec.cpp
+++ b/messagebus/src/vespa/messagebus/routing/hopspec.cpp
@@ -14,27 +14,15 @@ HopSpec::HopSpec(const string &name, const string &selector) :
_ignoreResult(false)
{ }
-HopSpec::~HopSpec() {}
+HopSpec::HopSpec(const HopSpec & rhs) = default;
+HopSpec & HopSpec::operator=(const HopSpec & rhs) = default;
+HopSpec::HopSpec(HopSpec && rhs) noexcept = default;
+HopSpec & HopSpec::operator=(HopSpec && rhs) noexcept = default;
+HopSpec::~HopSpec() = default;
HopSpec &
-HopSpec::addRecipients(const std::vector<string> &recipients)
-{
- _recipients.insert(_recipients.end(), recipients.begin(), recipients.end());
- return *this;
-}
-
-string
-HopSpec::removeRecipient(uint32_t i)
-{
- string ret = _recipients[i];
- _recipients.erase(_recipients.begin() + i);
- return ret;
-}
-
-HopSpec &
-HopSpec::setIgnoreResult(bool ignoreResult)
-{
- _ignoreResult = ignoreResult;
+HopSpec::addRecipient(const string &recipient) {
+ _recipients.push_back(recipient);
return *this;
}