From e80af14208bc82433e377c4615d93e0041c03407 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 4 Aug 2018 02:17:40 -0400 Subject: library: removed sfrt_create_driver_ctx() [too much of a good thing]. --- src/driver/sfrt_driver_ctx.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src') 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); -- cgit v1.2.3