From 9090585a8318bf9b5918df3db8dc61fc9e693780 Mon Sep 17 00:00:00 2001 From: Denis Biryukov Date: Tue, 3 Jun 2025 11:44:26 +0200 Subject: [PATCH] remove deprecated AdvancedPublisherOptions::SampleMissDetectionOptions::heartbeat_period_ms field --- include/zenoh/api/ext/session_ext.hxx | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/include/zenoh/api/ext/session_ext.hxx b/include/zenoh/api/ext/session_ext.hxx index db67afb4..1ead6220 100644 --- a/include/zenoh/api/ext/session_ext.hxx +++ b/include/zenoh/api/ext/session_ext.hxx @@ -313,16 +313,6 @@ class SessionExt { /// Configure last sample miss detection through sporadic or periodic heartbeat. std::variant heartbeat = HeartbeatNone{}; - /// @warning This API is deprecated and will be removed in future releases. Use `heartbeat` instead. - /// - /// The period of publisher periodic heartbeats in ms. When this option is set and heartbeat mode is set to - /// `HeartbeatNone`, the behavior is the same as `HeartbeatPeriodic` with the period is set to - /// heartbeat - /// - /// This option is ignored if heartbeat mode is not set to `HeartbeatNone`. - /// - /// Do not use this option, if is temporary left for backward compatibility and will be removed soon - std::optional heartbeat_period_ms = {}; /// @name Methods @@ -384,12 +374,6 @@ class SessionExt { } else { opts.sample_miss_detection.heartbeat_mode = ::ze_advanced_publisher_heartbeat_mode_t::ZE_ADVANCED_PUBLISHER_HEARTBEAT_MODE_NONE; - if (this->sample_miss_detection->heartbeat_period_ms.has_value()) { - opts.sample_miss_detection.heartbeat_mode = - ::ze_advanced_publisher_heartbeat_mode_t::ZE_ADVANCED_PUBLISHER_HEARTBEAT_MODE_PERIODIC; - opts.sample_miss_detection.heartbeat_period_ms = - this->sample_miss_detection->heartbeat_period_ms.value(); - } } } opts.publisher_detection_metadata = zenoh::interop::as_loaned_c_ptr(this->publisher_detection_metadata);