Remove unused function parent_dirname
authorVolker Lendecke <vl@samba.org>
Wed, 24 Dec 2008 12:47:41 +0000 (13:47 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 31 Dec 2008 18:33:25 +0000 (19:33 +0100)
source3/include/proto.h
source3/lib/util.c

index 53ba8e2503242d272efbb1f493a4a126d6da7d24..437a1d545afc5120ee8368a3f22c00c21e500f3d 100644 (file)
@@ -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);
index 82c4822a860b0577bf8d9d842eed9e148e637cd9..2c4cd20f31c52dd54b729ab1cfc7e9692c375175 100644 (file)
@@ -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)
 {