summaryrefslogtreecommitdiff
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-08-04 06:04:41 -0400
committermidipix <writeonce@midipix.org>2018-08-04 06:04:41 -0400
commitf3339c87545a02d231d5229d9ccca6e81ed0ef79 (patch)
tree7647da6188e8166a7591e477f9bb44c400cbf3be /src/driver
parent4999503f7e76a4f49c287f62293321f265eb71fa (diff)
downloadapimagic-f3339c87545a02d231d5229d9ccca6e81ed0ef79.tar.bz2
apimagic-f3339c87545a02d231d5229d9ccca6e81ed0ef79.tar.xz
library: removed amgc_create_driver_ctx() [too much of a good thing].
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/amgc_driver_ctx.c23
1 files changed, 0 insertions, 23 deletions
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();