diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/driver/amgc_driver_ctx.c | 23 |
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(); |