Skip to content

Commit

Permalink
Removed outdated comment (#319)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde authored Jul 12, 2024
1 parent 26db73e commit fc435e9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions image_transport/src/publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ std::string Publisher::getTopic() const
void Publisher::publish(const sensor_msgs::msg::Image & message) const
{
if (!impl_ || !impl_->isValid()) {
// TODO(ros2) Switch to RCUTILS_ASSERT when ros2/rcutils#112 is merged
auto logger = impl_ ? impl_->logger_ : rclcpp::get_logger("image_transport");
RCLCPP_FATAL(logger, "Call to publish() on an invalid image_transport::Publisher");
return;
Expand All @@ -190,7 +189,6 @@ void Publisher::publish(const sensor_msgs::msg::Image & message) const
void Publisher::publish(const sensor_msgs::msg::Image::ConstSharedPtr & message) const
{
if (!impl_ || !impl_->isValid()) {
// TODO(ros2) Switch to RCUTILS_ASSERT when ros2/rcutils#112 is merged
auto logger = impl_ ? impl_->logger_ : rclcpp::get_logger("image_transport");
RCLCPP_FATAL(logger, "Call to publish() on an invalid image_transport::Publisher");
return;
Expand Down

0 comments on commit fc435e9

Please sign in to comment.