summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-08-04 07:13:57 -0400
committermidipix <writeonce@midipix.org>2018-08-04 07:13:57 -0400
commitb0ed293eac8ad1fb78a9ce5d578c9c7823cc1011 (patch)
tree8318664ad89b1774111a6233be8e2c891f09f4d6 /src
parent5923b0d6f8e2e53a94fdae5dcfd49804fd8005c9 (diff)
downloadptycon-b0ed293eac8ad1fb78a9ce5d578c9c7823cc1011.tar.bz2
ptycon-b0ed293eac8ad1fb78a9ce5d578c9c7823cc1011.tar.xz
library: removed ptyc_create_driver_ctx() [too much of a good thing].
Diffstat (limited to 'src')
-rw-r--r--src/driver/ptyc_driver_ctx.c29
1 files changed, 0 insertions, 29 deletions
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);