From f3339c87545a02d231d5229d9ccca6e81ed0ef79 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 4 Aug 2018 06:04:41 -0400 Subject: library: removed amgc_create_driver_ctx() [too much of a good thing]. --- src/driver/amgc_driver_ctx.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src') diff --git a/src/driver/amgc_driver_ctx.c b/src/driver/amgc_driver_ctx.c index 620162d..e22d566 100644 --- a/src/driver/amgc_driver_ctx.c +++ b/src/driver/amgc_driver_ctx.c @@ -252,29 +252,6 @@ int amgc_get_driver_ctx( return AMGC_OK; } -int amgc_create_driver_ctx( - const struct amgc_common_ctx * cctx, - struct amgc_driver_ctx ** pctx) -{ - const struct argv_option * optv[AMGC_OPTV_ELEMENTS]; - struct argv_meta * meta; - struct amgc_driver_ctx_impl * ctx; - char * argv[] = {"apimagic_driver",0}; - - argv_optv_init(amgc_default_options,optv); - - if (!(meta = argv_get(argv,optv,0,STDERR_FILENO))) - return -1; - - if (!(ctx = amgc_driver_ctx_alloc(meta,cctx,0,0))) - return amgc_get_driver_ctx_fail(0); - - ctx->ctx.cctx = &ctx->cctx; - memcpy(&ctx->cctx,cctx,sizeof(*cctx)); - *pctx = &ctx->ctx; - return AMGC_OK; -} - static void amgc_exit_cparser(void) { exit_firm_opt(); -- cgit v1.2.3