From 5e2f8df7d05aa39daab0c467289d73be171dd2fe Mon Sep 17 00:00:00 2001 From: Adrian Szyndela Date: Fri, 1 Feb 2019 15:54:47 +0100 Subject: [PATCH] refactoring: remove params from ItemSendReceive() Params for ItemSendReceive are never used. Change-Id: I0c4c6bbaf68a4f65472267b3498c14f335561d12 --- src/internal/policy.cpp | 6 ++---- src/internal/policy.hpp | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/internal/policy.cpp b/src/internal/policy.cpp index d3f2855..0316fb7 100755 --- a/src/internal/policy.cpp +++ b/src/internal/policy.cpp @@ -315,10 +315,8 @@ bool MatchItemSR::addNames(const char* name) { return true; } -ItemSendReceive::ItemSendReceive(MessageType type, - MessageDirection direction) - : __type(type), - __direction(direction), +ItemSendReceive::ItemSendReceive() + : __type(MessageType::ANY), __is_name_prefix(false) { } diff --git a/src/internal/policy.hpp b/src/internal/policy.hpp index 293e973..0c3a04b 100755 --- a/src/internal/policy.hpp +++ b/src/internal/policy.hpp @@ -181,8 +181,7 @@ namespace ldp_xml_parser bool __is_name_prefix; public: friend class ItemBuilder; - ItemSendReceive(MessageType type = MessageType::ANY, - MessageDirection direction = MessageDirection::ANY); + ItemSendReceive(); bool match(const MatchItemSR& item) const; MessageDirection getDirection() const; ItemType getType() const; -- 2.7.4