From 3192589d7c45cc7adeeb7c86c20a009cb4d16934 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Sun, 1 Nov 2009 23:11:55 -0500 Subject: [PATCH] liblbx: Remove lbx_open as it is both unused and stupid. --- src/lbx.c | 15 --------------- src/lbx.h | 1 - 2 files changed, 16 deletions(-) diff --git a/src/lbx.c b/src/lbx.c index d75a123..05c3cbc 100644 --- a/src/lbx.c +++ b/src/lbx.c @@ -165,21 +165,6 @@ eof: return NULL; } -struct lbx_state *lbx_open(const char *path) -{ - struct lbx_state *new = NULL; - FILE *f; - - if ((f = fopen(path, "rb"))) { - const char *name = strrchr(path, '/'); - new = lbx_fopen(f, name ? name+1 : path); - } else { - lbx_errno = -errno; - } - - return new; -} - size_t lbx_numfiles(struct lbx_state *lbx) { return lbx->nfiles; diff --git a/src/lbx.h b/src/lbx.h index a2ca456..95837e5 100644 --- a/src/lbx.h +++ b/src/lbx.h @@ -24,7 +24,6 @@ struct lbx_statbuf { /* Archive operations */ LBX *lbx_fopen(FILE *, const char *); LBX *lbx_mopen(void *, size_t, const char *); -LBX *lbx_open(const char *); void lbx_close(LBX *); size_t lbx_numfiles(LBX *); -- 2.43.2