summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/ptycon/ptycon.h1
-rw-r--r--src/driver/ptyc_driver_ctx.c29
2 files changed, 0 insertions, 30 deletions
diff --git a/include/ptycon/ptycon.h b/include/ptycon/ptycon.h
index d8f2275..e6ef22f 100644
--- a/include/ptycon/ptycon.h
+++ b/include/ptycon/ptycon.h
@@ -86,7 +86,6 @@ ptyc_api const struct ptyc_source_version * ptyc_source_version(void);
/* driver api */
ptyc_api int ptyc_get_driver_ctx (char ** argv, char ** envp, uint32_t flags, struct ptyc_driver_ctx **);
-ptyc_api int ptyc_create_driver_ctx (const struct ptyc_common_ctx *, struct ptyc_driver_ctx **);
ptyc_api void ptyc_free_driver_ctx (struct ptyc_driver_ctx *);
/* pty api */
diff --git a/src/driver/ptyc_driver_ctx.c b/src/driver/ptyc_driver_ctx.c
index 2867000..dd66b76 100644
--- a/src/driver/ptyc_driver_ctx.c
+++ b/src/driver/ptyc_driver_ctx.c
@@ -349,35 +349,6 @@ int ptyc_get_driver_ctx(
return PTYC_OK;
}
-int ptyc_create_driver_ctx(
- const struct ptyc_common_ctx * cctx,
- struct ptyc_driver_ctx ** pctx)
-{
- const struct argv_option * optv[PTYC_OPTV_ELEMENTS];
- struct argv_meta * meta;
- struct ptyc_driver_ctx_impl * ctx;
- char * argv[] = {"ptycon_driver",0};
-
- if (ptyc_init())
- return -1;
-
- if (ptyc_vtbl_init())
- return -1;
-
- argv_optv_init(ptyc_default_options,optv);
-
- if (!(meta = argv_get(argv,optv,0,STDERR_FILENO)))
- return -1;
-
- if (!(ctx = ptyc_driver_ctx_alloc(meta,cctx,0)))
- return ptyc_get_driver_ctx_fail(0);
-
- ctx->ctx.cctx = &ctx->cctx;
- memcpy(&ctx->cctx,cctx,sizeof(*cctx));
- *pctx = &ctx->ctx;
- return PTYC_OK;
-}
-
static void ptyc_free_driver_ctx_impl(struct ptyc_driver_ctx_alloc * ictx)
{
ptyc_free_pty(&ictx->ctx.ctx);