MXS-1915 Remove unused functions
This commit is contained in:
@ -16,13 +16,4 @@
|
||||
|
||||
MXS_BEGIN_DECLS
|
||||
|
||||
/**
|
||||
* Query whether worker should shutdown.
|
||||
*
|
||||
* @param worker The worker in question.
|
||||
*
|
||||
* @return True, if the worker should shut down, false otherwise.
|
||||
*/
|
||||
bool mxs_worker_should_shutdown(MXS_WORKER* worker);
|
||||
|
||||
MXS_END_DECLS
|
||||
|
@ -333,11 +333,6 @@ bool RoutingWorker::remove_shared_fd(int fd)
|
||||
return rv;
|
||||
}
|
||||
|
||||
int mxs_worker_id(MXS_WORKER* pWorker)
|
||||
{
|
||||
return static_cast<RoutingWorker*>(pWorker)->id();
|
||||
}
|
||||
|
||||
bool mxs_worker_should_shutdown(MXS_WORKER* pWorker)
|
||||
{
|
||||
return static_cast<RoutingWorker*>(pWorker)->should_shutdown();
|
||||
|
@ -1395,36 +1395,11 @@ json_t* mxs_worker_list_to_json(const char* host)
|
||||
return task.resource();
|
||||
}
|
||||
|
||||
size_t mxs_worker_broadcast_message(uint32_t msg_id, intptr_t arg1, intptr_t arg2)
|
||||
{
|
||||
return Worker::broadcast_message(msg_id, arg1, arg2);
|
||||
}
|
||||
|
||||
MXS_WORKER* mxs_worker_get(int worker_id)
|
||||
{
|
||||
return Worker::get(worker_id);
|
||||
}
|
||||
|
||||
MXS_WORKER* mxs_worker_get_current()
|
||||
{
|
||||
return Worker::get_current();
|
||||
}
|
||||
|
||||
int mxs_worker_get_current_id()
|
||||
{
|
||||
return Worker::get_current_id();
|
||||
}
|
||||
|
||||
int mxs_worker_id(MXS_WORKER* pWorker)
|
||||
{
|
||||
return static_cast<Worker*>(pWorker)->id();
|
||||
}
|
||||
|
||||
bool mxs_worker_should_shutdown(MXS_WORKER* pWorker)
|
||||
{
|
||||
return static_cast<Worker*>(pWorker)->should_shutdown();
|
||||
}
|
||||
|
||||
bool mxs_worker_post_message(MXS_WORKER* pWorker, uint32_t msg_id, intptr_t arg1, intptr_t arg2)
|
||||
{
|
||||
return static_cast<Worker*>(pWorker)->post_message(msg_id, arg1, arg2);
|
||||
|
Reference in New Issue
Block a user