summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/driver/sfrt_driver_ctx.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/driver/sfrt_driver_ctx.c b/src/driver/sfrt_driver_ctx.c
index 3920049..fc3ea3a 100644
--- a/src/driver/sfrt_driver_ctx.c
+++ b/src/driver/sfrt_driver_ctx.c
@@ -168,29 +168,6 @@ int sfrt_get_driver_ctx(
return SFRT_OK;
}
-int sfrt_create_driver_ctx(
- const struct sfrt_common_ctx * cctx,
- struct sfrt_driver_ctx ** pctx)
-{
- const struct argv_option * optv[SFRT_OPTV_ELEMENTS];
- struct argv_meta * meta;
- struct sfrt_driver_ctx_impl * ctx;
- char * argv[] = {"sofort_driver",0};
-
- argv_optv_init(sfrt_default_options,optv);
-
- if (!(meta = argv_get(argv,optv,0,STDERR_FILENO)))
- return -1;
-
- if (!(ctx = sfrt_driver_ctx_alloc(meta,cctx,0)))
- return sfrt_get_driver_ctx_fail(0);
-
- ctx->ctx.cctx = &ctx->cctx;
- memcpy(&ctx->cctx,cctx,sizeof(*cctx));
- *pctx = &ctx->ctx;
- return SFRT_OK;
-}
-
static void sfrt_free_driver_ctx_impl(struct sfrt_driver_ctx_alloc * ictx)
{
argv_free(ictx->meta);