Skip to content

Remove unused code, Future.result() already raises#270

Merged
sloretz merged 1 commit intomasterfrom
future_already_raises
Sep 23, 2021
Merged

Remove unused code, Future.result() already raises#270
sloretz merged 1 commit intomasterfrom
future_already_raises

Conversation

@sloretz
Copy link
Copy Markdown
Contributor

@sloretz sloretz commented Sep 23, 2021

This removes some unused code. rclpy.task.Future.result() already raises if there's an exception.

https://github.com/ros2/rclpy/blob/691e4fbfcb4bd4cc2a01182a7dced3105a78200b/rclpy/rclpy/task.py#L93-L94

Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
@sloretz sloretz self-assigned this Sep 23, 2021
@sloretz
Copy link
Copy Markdown
Contributor Author

sloretz commented Sep 23, 2021

CI (build: --packages-up-to launch_testing_ros test: --packages-select launch_testing_ros)

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@sloretz sloretz merged commit 999b208 into master Sep 23, 2021
@delete-merged-branch delete-merged-branch bot deleted the future_already_raises branch September 23, 2021 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants