From c624e5b4ce88f401c3d7b4636b6f6bb8565142ec Mon Sep 17 00:00:00 2001 From: Miguel Company Date: Wed, 18 Nov 2020 19:15:12 +0100 Subject: [PATCH] Remove unnecessary includes (#487) * Removed unnecessary includes on participant.cpp Also avoid copy of ParticipantAttributes Signed-off-by: Miguel Company --- rmw_fastrtps_shared_cpp/src/participant.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/rmw_fastrtps_shared_cpp/src/participant.cpp b/rmw_fastrtps_shared_cpp/src/participant.cpp index 2e4ccb516..fb92e8ebc 100644 --- a/rmw_fastrtps_shared_cpp/src/participant.cpp +++ b/rmw_fastrtps_shared_cpp/src/participant.cpp @@ -24,12 +24,7 @@ #include "fastrtps/participant/Participant.h" #include "fastrtps/publisher/Publisher.h" #include "fastrtps/publisher/PublisherListener.h" -#include "fastrtps/rtps/RTPSDomain.h" #include "fastrtps/rtps/common/Locator.h" -#include "fastrtps/rtps/builtin/discovery/endpoint/EDPSimple.h" -#include "fastrtps/rtps/reader/ReaderListener.h" -#include "fastrtps/rtps/reader/RTPSReader.h" -#include "fastrtps/rtps/reader/StatefulReader.h" #include "fastrtps/subscriber/Subscriber.h" #include "fastrtps/subscriber/SubscriberListener.h" #include "fastrtps/subscriber/SampleInfo.h" @@ -49,7 +44,6 @@ using IPLocator = eprosima::fastrtps::rtps::IPLocator; using Locator_t = eprosima::fastrtps::rtps::Locator_t; using Participant = eprosima::fastrtps::Participant; using ParticipantAttributes = eprosima::fastrtps::ParticipantAttributes; -using StatefulReader = eprosima::fastrtps::rtps::StatefulReader; #if HAVE_SECURITY static @@ -92,7 +86,7 @@ static CustomParticipantInfo * __create_participant( const char * identifier, - ParticipantAttributes participantAttrs, + const ParticipantAttributes & participantAttrs, bool leave_middleware_default_qos, publishing_mode_t publishing_mode, rmw_dds_common::Context * common_context)