ut/event: remove unused spdk_event_*() functions

Some time ago spdk_subsystem_init() used spdk_events as
callbacks, but it was removed.

This patch removes left over UT stubs.

Change-Id: Id25ac8e4e338c172d21161dede6dc046f0860279
Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/464682
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Tomasz Zawadzki 2019-08-09 05:20:04 -04:00 committed by Jim Harris
parent b85881ec7c
commit a744bf83ff

View File

@ -49,30 +49,6 @@ ut_event_fn(int rc, void *arg1)
global_rc = rc;
}
struct spdk_event *
spdk_event_allocate(uint32_t core, spdk_event_fn fn, void *arg1, void *arg2)
{
struct spdk_event *event = calloc(1, sizeof(*event));
SPDK_CU_ASSERT_FATAL(event != NULL);
event->fn = fn;
event->arg1 = arg1;
event->arg2 = arg2;
return event;
}
void spdk_event_call(struct spdk_event *event)
{
if (event != NULL) {
if (event->fn != NULL) {
event->fn(event->arg1, event->arg2);
}
free(event);
}
}
static void
set_up_subsystem(struct spdk_subsystem *subsystem, const char *name)
{