From a761df4ffa0e77e1bd34a6e02ba621ca71523389 Mon Sep 17 00:00:00 2001 From: Thomas Gubler Date: Wed, 21 Jan 2015 18:14:20 +0100 Subject: clean up px4_publisher --- src/platforms/px4_publisher.h | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/platforms/px4_publisher.h b/src/platforms/px4_publisher.h index 0c8dd62ba..911554503 100644 --- a/src/platforms/px4_publisher.h +++ b/src/platforms/px4_publisher.h @@ -59,20 +59,11 @@ class __EXPORT PublisherBase public: PublisherBase() {}; ~PublisherBase() {}; - - /** Publishes msg - * @param msg the message which is published to the topic - */ - // virtual int publish2(const PX4Message * const msg) = 0; - }; #if defined(__PX4_ROS) -// template class Publisher : public PublisherBase - // public PublisherBase, - // public T { public: /** @@ -81,7 +72,6 @@ public: */ Publisher(ros::Publisher ros_pub) : PublisherBase(), - // T(), _ros_pub(ros_pub) {} @@ -90,7 +80,6 @@ public: /** Publishes msg * @param msg the message which is published to the topic */ - // int publish(const M &msg) { _ros_pub.publish(msg); return 0; } template int publish(T &msg) { _ros_pub.publish(msg.data()); @@ -100,7 +89,6 @@ private: }; #else class __EXPORT Publisher : - // public uORB::PublicationNode, public PublisherBase, public ListNode @@ -108,14 +96,7 @@ class __EXPORT Publisher : public: /** * Construct Publisher by providing orb meta data - * @param meta orb metadata for the topic which is used - * @param list publisher is added to this list */ - // Publisher(const struct orb_metadata *meta, - // List *list) : - // uORB::PublicationNode(meta, list), - // PublisherBase() - // {} Publisher(uORB::PublicationBase * uorb_pub) : PublisherBase(), _uorb_pub(uorb_pub) -- cgit v1.2.3