]> git.draconx.ca Git - liblbx.git/commitdiff
liblbx: Remove lbx_open as it is both unused and stupid.
authorNick Bowler <draconx@users.sourceforge.net>
Mon, 2 Nov 2009 04:11:55 +0000 (23:11 -0500)
committerNick Bowler <nbowler@draconx.ca>
Thu, 4 Feb 2010 01:29:41 +0000 (20:29 -0500)
src/lbx.c
src/lbx.h

index d75a1232485d67b2e1660e40ad03958a132ab4db..05c3cbc531ee1c764930472b1f20edda7b2049ce 100644 (file)
--- 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;
index a2ca456f949eb72dbaa81dc5c00d4d173bf6287c..95837e57355d0825d3fea74322dfa66cf6bb92ae 100644 (file)
--- 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 *);