diff --git a/SilKit/IntegrationTests/ITest_MessageAggregation.cpp b/SilKit/IntegrationTests/ITest_MessageAggregation.cpp index a32575e76..047383721 100644 --- a/SilKit/IntegrationTests/ITest_MessageAggregation.cpp +++ b/SilKit/IntegrationTests/ITest_MessageAggregation.cpp @@ -105,8 +105,8 @@ TEST_F(ITest_MessageAggregation, timeout_in_case_of_deadlock_when_using_async_si }); timeSyncService->SetSimulationStepHandlerAsync( - [dataPublisher, lifecycleService, timeSyncService, &msgReceived](std::chrono::nanoseconds /*now*/, - std::chrono::nanoseconds /*duration*/) { + [dataPublisher, lifecycleService, &msgReceived](std::chrono::nanoseconds /*now*/, + std::chrono::nanoseconds /*duration*/) { // send ping std::vector ping(1, '?'); dataPublisher->Publish(std::move(ping)); diff --git a/SilKit/source/core/participant/Participant_impl.hpp b/SilKit/source/core/participant/Participant_impl.hpp index 7b27b031b..066624837 100644 --- a/SilKit/source/core/participant/Participant_impl.hpp +++ b/SilKit/source/core/participant/Participant_impl.hpp @@ -242,8 +242,7 @@ void Participant::SetupMetrics() SilKit::Config::InternalController config; config.name = "MetricsReceiver"; config.network = "default"; - CreateController(config, std::move(supplementalData), true, true, *_logger, - processor); + CreateController(config, std::move(supplementalData), true, true, processor); } } diff --git a/SilKit/source/core/vasio/VAsioRegistry.cpp b/SilKit/source/core/vasio/VAsioRegistry.cpp index 9e1754ae7..3d25c6bdc 100644 --- a/SilKit/source/core/vasio/VAsioRegistry.cpp +++ b/SilKit/source/core/vasio/VAsioRegistry.cpp @@ -333,7 +333,7 @@ void VAsioRegistry::SetupMetrics() if (_vasioConfig->experimental.metrics.collectFromRemote) { - auto metricsReceiver = std::make_unique(nullptr, *_logger, processor); + auto metricsReceiver = std::make_unique(nullptr, processor); SilKit::Core::SupplementalData supplementalData; supplementalData[SilKit::Core::Discovery::controllerType] = diff --git a/SilKit/source/services/metrics/MetricsReceiver.cpp b/SilKit/source/services/metrics/MetricsReceiver.cpp index 607d35b83..4036f0ecf 100644 --- a/SilKit/source/services/metrics/MetricsReceiver.cpp +++ b/SilKit/source/services/metrics/MetricsReceiver.cpp @@ -13,10 +13,8 @@ namespace Log = SilKit::Services::Logging; namespace VSilKit { -MetricsReceiver::MetricsReceiver(SilKit::Core::IParticipantInternal *, SilKit::Services::Logging::ILogger &logger, - IMetricsReceiverListener &listener) - : _logger{&logger} - , _listener{&listener} +MetricsReceiver::MetricsReceiver(SilKit::Core::IParticipantInternal *, IMetricsReceiverListener &listener) + : _listener{&listener} { _serviceDescriptor.SetNetworkName("default"); } diff --git a/SilKit/source/services/metrics/MetricsReceiver.hpp b/SilKit/source/services/metrics/MetricsReceiver.hpp index d7ea5e721..ddbb2d94c 100644 --- a/SilKit/source/services/metrics/MetricsReceiver.hpp +++ b/SilKit/source/services/metrics/MetricsReceiver.hpp @@ -26,8 +26,7 @@ class MetricsReceiver , public SilKit::Core::IServiceEndpoint { public: - MetricsReceiver(SilKit::Core::IParticipantInternal*, SilKit::Services::Logging::ILogger& logger, - IMetricsReceiverListener& listener); + MetricsReceiver(SilKit::Core::IParticipantInternal*, IMetricsReceiverListener& listener); // NB: The first constructor argument is present to enable using the CreateController function template. It is // allowed to be nullptr. @@ -40,7 +39,6 @@ class MetricsReceiver auto GetServiceDescriptor() const -> const SilKit::Core::ServiceDescriptor& override; private: - SilKit::Services::Logging::ILogger* _logger{nullptr}; IMetricsReceiverListener* _listener{nullptr}; SilKit::Core::ServiceDescriptor _serviceDescriptor; diff --git a/SilKit/source/services/orchestration/TimeSyncService.hpp b/SilKit/source/services/orchestration/TimeSyncService.hpp index 93fbfdfc0..786f8700a 100644 --- a/SilKit/source/services/orchestration/TimeSyncService.hpp +++ b/SilKit/source/services/orchestration/TimeSyncService.hpp @@ -148,7 +148,6 @@ class TimeSyncService std::vector _requiredParticipants; - bool _isRunning{false}; bool _isSynchronizingVirtualTime{false}; bool _timeSyncConfigured{false};