From 55356209df3df58ff59cbde2726a4731ff4d229d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Tue, 9 Jul 2024 18:02:35 +0200 Subject: [PATCH] Removed deprecated rcl_init_timer() (#1167) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alejandro Hernández Cordero --- rcl/include/rcl/timer.h | 15 --------------- rcl/src/rcl/timer.c | 14 -------------- 2 files changed, 29 deletions(-) diff --git a/rcl/include/rcl/timer.h b/rcl/include/rcl/timer.h index 5aa10b4a1..9a4e45664 100644 --- a/rcl/include/rcl/timer.h +++ b/rcl/include/rcl/timer.h @@ -178,21 +178,6 @@ rcl_timer_init2( rcl_allocator_t allocator, bool autostart); -/** - * \deprecated `rcl_timer_init` implementation was removed. - * Refer to `rcl_timer_init2`. - */ -RCL_PUBLIC -RCUTILS_DEPRECATED_WITH_MSG("Call rcl_timer_init2 instead") -rcl_ret_t -rcl_timer_init( - rcl_timer_t * timer, - rcl_clock_t * clock, - rcl_context_t * context, - int64_t period, - const rcl_timer_callback_t callback, - rcl_allocator_t allocator); - /// Finalize a timer. /** * This function will deallocate any memory and make the timer invalid. diff --git a/rcl/src/rcl/timer.c b/rcl/src/rcl/timer.c index 7df2d68f0..879c148ed 100644 --- a/rcl/src/rcl/timer.c +++ b/rcl/src/rcl/timer.c @@ -126,20 +126,6 @@ void _rcl_timer_time_jump( } } -rcl_ret_t -rcl_timer_init( - rcl_timer_t * timer, - rcl_clock_t * clock, - rcl_context_t * context, - int64_t period, - const rcl_timer_callback_t callback, - rcl_allocator_t allocator) -{ - return rcl_timer_init2( - timer, clock, context, period, callback, - allocator, true); -} - rcl_ret_t rcl_timer_init2( rcl_timer_t * timer,