orb macros: cleanup some unused code (#4576)

This commit is contained in:
Beat Küng
2016-05-19 11:08:37 +02:00
committed by Lorenz Meier
parent fee5e87d87
commit fd0f52bebd
5 changed files with 1 additions and 14 deletions
+1 -3
View File
@@ -89,16 +89,14 @@ enum ORB_PRIO {
#define ORB_ID(_name) &__orb_##_name
/**
* Declare (prototype) the uORB metadata for a topic.
* Declare (prototype) the uORB metadata for a topic (used by code generators).
*
* @param _name The name of the topic.
*/
#if defined(__cplusplus)
# define ORB_DECLARE(_name) extern "C" const struct orb_metadata __orb_##_name __EXPORT
# define ORB_DECLARE_OPTIONAL(_name) extern "C" const struct orb_metadata __orb_##_name __EXPORT
#else
# define ORB_DECLARE(_name) extern const struct orb_metadata __orb_##_name __EXPORT
# define ORB_DECLARE_OPTIONAL(_name) extern const struct orb_metadata __orb_##_name __EXPORT
#endif
/**
-3
View File
@@ -187,9 +187,6 @@ public:
* for the topic.
* @return ERROR on error, otherwise returns a handle
* that can be used to read and update the topic.
* If the topic in question is not known (due to an
* ORB_DEFINE_OPTIONAL with no corresponding ORB_DECLARE)
* this function will return -1 and set errno to ENOENT.
*/
int orb_subscribe(const struct orb_metadata *meta) ;