]> git.draconx.ca Git - liblbx.git/blobdiff - src/lbx.c
liblbx: Remove lbx_open as it is both unused and stupid.
[liblbx.git] / src / lbx.c
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;