summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-12-24 13:47:41 +0100
committerVolker Lendecke <vl@samba.org>2008-12-31 19:33:25 +0100
commit9b79181f1508b8a126a48511232205abe456e923 (patch)
tree23ddef14be946f24b008d188fd37067562981658 /source3
parent70002c1667ee9ea4fc716f9b8134c8dcd22ec409 (diff)
downloadsamba-9b79181f1508b8a126a48511232205abe456e923.tar.gz
samba-9b79181f1508b8a126a48511232205abe456e923.tar.bz2
samba-9b79181f1508b8a126a48511232205abe456e923.zip
Remove unused function parent_dirname
Diffstat (limited to 'source3')
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/lib/util.c13
2 files changed, 0 insertions, 14 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 53ba8e2503..437a1d545a 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1230,7 +1230,6 @@ char *modules_path(const char *name);
char *data_path(const char *name);
char *state_path(const char *name);
const char *shlib_ext(void);
-char *parent_dirname(const char *path);
bool parent_dirname_talloc(TALLOC_CTX *mem_ctx, const char *dir,
char **parent, const char **name);
bool ms_has_wild(const char *s);
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 82c4822a86..2c4cd20f31 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -2332,21 +2332,8 @@ const char *shlib_ext(void)
/*******************************************************************
Given a filename - get its directory name
- NB: Returned in static storage. Caveats:
- o If caller wishes to preserve, they should copy.
********************************************************************/
-char *parent_dirname(const char *path)
-{
- char *parent;
-
- if (!parent_dirname_talloc(talloc_tos(), path, &parent, NULL)) {
- return NULL;
- }
-
- return parent;
-}
-
bool parent_dirname_talloc(TALLOC_CTX *mem_ctx, const char *dir,
char **parent, const char **name)
{