vdev: remove unneeded devList & topicList methods

This commit is contained in:
Beat Küng
2017-08-21 10:47:24 +02:00
committed by Lorenz Meier
parent 47eb371c01
commit 7a409cf843
3 changed files with 0 additions and 34 deletions
-22
View File
@@ -617,26 +617,4 @@ void VDev::showFiles()
pthread_mutex_unlock(&devmutex); pthread_mutex_unlock(&devmutex);
} }
const char *VDev::topicList(unsigned int *next)
{
for (; *next < PX4_MAX_DEV; (*next)++) {
if (devmap[*next] && strncmp(devmap[(*next)]->name, "/obj/", 5) == 0) {
return devmap[(*next)++]->name;
}
}
return nullptr;
}
const char *VDev::devList(unsigned int *next)
{
for (; *next < PX4_MAX_DEV; (*next)++) {
if (devmap[*next] && strncmp(devmap[(*next)]->name, "/dev/", 5) == 0) {
return devmap[(*next)++]->name;
}
}
return nullptr;
}
} // namespace device } // namespace device
-2
View File
@@ -326,8 +326,6 @@ public:
static void showFiles(void); static void showFiles(void);
static void showDevices(void); static void showDevices(void);
static void showTopics(void); static void showTopics(void);
static const char *devList(unsigned int *next);
static const char *topicList(unsigned int *next);
/** /**
* Get the device name. * Get the device name.
-10
View File
@@ -442,15 +442,5 @@ extern "C" {
return sim_delay; return sim_delay;
} }
const char *px4_get_device_names(unsigned int *handle)
{
return VDev::devList(handle);
}
const char *px4_get_topic_names(unsigned int *handle)
{
return VDev::topicList(handle);
}
} }