From 40bf23d862c92a3c519cffaf2175514a51ce3865 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 9 Feb 2012 11:17:02 +1100 Subject: s3-lib: Remove unused pid_path() piddir.c calls lp_piddir() directly. Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett --- source3/include/proto.h | 1 - source3/lib/util.c | 13 ------------- 2 files changed, 14 deletions(-) (limited to 'source3') diff --git a/source3/include/proto.h b/source3/include/proto.h index 6ad0a82f5c..7527e04e67 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -535,7 +535,6 @@ void *smb_xmalloc_array(size_t size, unsigned int count); char *myhostname(void); char *myhostname_upper(void); char *lock_path(const char *name); -char *pid_path(const char *name); char *state_path(const char *name); char *cache_path(const char *name); bool parent_dirname(TALLOC_CTX *mem_ctx, const char *dir, char **parent, diff --git a/source3/lib/util.c b/source3/lib/util.c index b783c7e9c9..4ae872aa3b 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1555,19 +1555,6 @@ char *lock_path(const char *name) return xx_path(name, lp_lockdir()); } -/** - * @brief Returns an absolute path to a file in the Samba pid directory. - * - * @param name File to find, relative to PIDDIR. - * - * @retval Pointer to a talloc'ed string containing the full path. - **/ - -char *pid_path(const char *name) -{ - return xx_path(name, lp_piddir()); -} - /** * @brief Returns an absolute path to a file in the Samba state directory. * -- cgit