From 876b1b3d198e2306c36423bfb1449870c74181fd Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 6 Jun 2011 14:22:12 +1000 Subject: s3-lib Remove unused lib_path() --- source3/include/proto.h | 1 - source3/lib/util.c | 13 ------------- 2 files changed, 14 deletions(-) diff --git a/source3/include/proto.h b/source3/include/proto.h index f732a53655..1cdc0c9081 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -570,7 +570,6 @@ void *smb_xmalloc_array(size_t size, unsigned int count); char *myhostname(void); char *lock_path(const char *name); char *pid_path(const char *name); -char *lib_path(const char *name); char *modules_path(const char *name); char *data_path(const char *name); char *state_path(const char *name); diff --git a/source3/lib/util.c b/source3/lib/util.c index 173e9067cc..dc91fa06a1 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1513,19 +1513,6 @@ char *pid_path(const char *name) return xx_path(name, lp_piddir()); } -/** - * @brief Returns an absolute path to a file in the Samba lib directory. - * - * @param name File to find, relative to LIBDIR. - * - * @retval Pointer to a string containing the full path. - **/ - -char *lib_path(const char *name) -{ - return talloc_asprintf(talloc_tos(), "%s/%s", get_dyn_LIBDIR(), name); -} - /** * @brief Returns an absolute path to a file in the Samba modules directory. * -- cgit