From 5fa9318ef018dbab7b0379cf38572ee90b19370a Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 5 Sep 2023 15:47:11 +0200 Subject: [PATCH] Remove 'efficient copy' prints (#625) (#627) Matching https://github.com/ros/geometry2/pull/530 (cherry picked from commit 4b8483886bd3aaf798fcdadf140ff5e9e5165070) Co-authored-by: Matthijs van der Burgh --- tf2_ros_py/tf2_ros/buffer_interface.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tf2_ros_py/tf2_ros/buffer_interface.py b/tf2_ros_py/tf2_ros/buffer_interface.py index ecd677168..933d4b29d 100644 --- a/tf2_ros_py/tf2_ros/buffer_interface.py +++ b/tf2_ros_py/tf2_ros/buffer_interface.py @@ -339,14 +339,11 @@ def convert(a: TransformableObject, b_type: TransformableObjectType) -> Transfor #check if an efficient conversion function between the types exists try: f = c.get_convert((type(a), b_type)) - print("efficient copy") return f(a) except TypeException: if type(a) == b_type: - print("deep copy") return deepcopy(a) f_to = c.get_to_msg(type(a)) f_from = c.get_from_msg(b_type) - print("message copy") return f_from(f_to(a))