]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
finish cleaning up after a change i made over 3 years ago.
authordgaudet <dgaudet@unknown>
Tue, 15 Aug 2000 12:44:28 +0000 (12:44 +0000)
committerdgaudet <dgaudet@unknown>
Tue, 15 Aug 2000 12:44:28 +0000 (12:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86078 13f79535-47bb-0310-9956-ffa450edef68

include/httpd.h
server/util.c

index b9347daeee812ec20e3042d448feac0b35a12b79..475b7793eaa17d67693650b5148f182fed601b0d 100644 (file)
@@ -1299,9 +1299,6 @@ API_EXPORT(char *) ap_make_dirstr_prefix(char *d, const char *s, int n);
  */
 API_EXPORT(char *) ap_make_dirstr_parent(apr_pool_t *p, const char *s);
 
-/* deprecated.  The previous two routines are preferred. */
-API_EXPORT(char *) ap_make_dirstr(apr_pool_t *a, const char *s, int n);
-
 /**
  * Given a directory and filename, create a single path out of them.  This
  * function is smart enough to ensure that there is a sinlge '/' between the
index 57bcd6a0f6387d41ef72ef032bee506745ae7a3d..2273058283f70e2eb40c82110047e8e7a496d521 100644 (file)
@@ -570,32 +570,6 @@ API_EXPORT(char *) ap_make_dirstr_parent(apr_pool_t *p, const char *s)
 }
 
 
-/*
- * This function is deprecated.  Use one of the preceeding two functions
- * which are faster.
- */
-API_EXPORT(char *) ap_make_dirstr(apr_pool_t *p, const char *s, int n)
-{
-    register int x, f;
-    char *res;
-
-    for (x = 0, f = 0; s[x]; x++) {
-       if (s[x] == '/')
-           if ((++f) == n) {
-               res = apr_palloc(p, x + 2);
-               memcpy(res, s, x);
-               res[x] = '/';
-               res[x + 1] = '\0';
-               return res;
-           }
-    }
-
-    if (s[strlen(s) - 1] == '/')
-       return apr_pstrdup(p, s);
-    else
-       return apr_pstrcat(p, s, "/", NULL);
-}
-
 API_EXPORT(int) ap_count_dirs(const char *path)
 {
     register int x, n;