diff options
author | Colin Watson <cjwatson@debian.org> | 2014-09-09 23:03:51 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2014-09-09 23:05:39 +0100 |
commit | 47ab86008870e59888f034975469a13a3efa7e58 (patch) | |
tree | 58d7c9f7c6b2b7643bb4af5baecdc7163fc6b2e2 | |
parent | ad232211ac467af41473c445e17d712bfecea5c7 (diff) |
Remove unused reset_db_mtime function
* src/check_mandirs.c (reset_db_mtime): Remove. This function has
been unused since man-db 2.4.2.
* src/check_mandirs.h (reset_db_mtime): Remove prototype.
* src/man.c: Stop including "check_mandirs.h".
-rw-r--r-- | src/check_mandirs.c | 23 | ||||
-rw-r--r-- | src/check_mandirs.h | 1 | ||||
-rw-r--r-- | src/man.c | 1 |
3 files changed, 0 insertions, 25 deletions
diff --git a/src/check_mandirs.c b/src/check_mandirs.c index 3ab36bd5..debbdbe6 100644 --- a/src/check_mandirs.c +++ b/src/check_mandirs.c @@ -582,29 +582,6 @@ void update_db_time (void) free (MYDBM_DPTR (content)); } -/* remove the db's time key - called prior to update_db if we want - to `force' a full consistency check */ -void reset_db_time (void) -{ - datum key; - - memset (&key, 0, sizeof key); - - MYDBM_SET (key, xstrdup (KEY)); - - /* we don't really care if we can't open it RW - it's not fatal */ - dbf = MYDBM_RWOPEN (database); - if (dbf == NULL) { - debug_error ("reset_db_time(): can't open db"); - return; - } - - MYDBM_DELETE (dbf, key); - debug ("reset_db_time()\n"); - MYDBM_CLOSE (dbf); - free (MYDBM_DPTR (key)); -} - /* routine to prepare/create the db prior to calling testmandirs() */ int create_db (const char *manpath, const char *catpath) { diff --git a/src/check_mandirs.h b/src/check_mandirs.h index 3b74cae7..64997c47 100644 --- a/src/check_mandirs.h +++ b/src/check_mandirs.h @@ -25,7 +25,6 @@ /* check_mandirs.c */ extern void test_manfile (const char *file, const char *path); extern void update_db_time (void); -extern void reset_db_time (void); extern int create_db (const char *manpath, const char *catpath); extern int update_db (const char *manpath, const char *catpath); extern void purge_pointers (const char *name); @@ -98,7 +98,6 @@ static char *cwd; #include "mydbm.h" #include "db_storage.h" -#include "check_mandirs.h" #include "filenames.h" #include "globbing.h" #include "ult_src.h" |