=== trunk/subversion/libsvn_repos/authz.c
==================================================================
--- trunk/subversion/libsvn_repos/authz.c  (revision 131)
+++ trunk/subversion/libsvn_repos/authz.c  (revision 132)
@@ -197,24 +197,6 @@
 
 
 
-/*
- * Utility function for authz_parse_section, to determine whether
- * path2 is a child of path1 (or *is* path1).
- */
-static svn_boolean_t
-authz_path_is_ancestor (const char *path1, const char *path2)
-{
-  apr_size_t path1_len = strlen (path1);
-
-  if (strncmp (path1, path2, path1_len) == 0)
-    return path1[path1_len - 1] == '/'
-      || (path2[path1_len] == '/' || path2[path1_len] == '\0');
-
-  return FALSE;
-}
-
-
-
 /* Callback to parse a section and update the authz_baton if the
  * section denies access to the subtree the baton describes.
  */
@@ -225,10 +207,10 @@
   svn_boolean_t conclusive;
 
   /* Does the section apply to us? */
-  if (authz_path_is_ancestor (b->qualified_repos_path,
-                              section_name) == FALSE
-      && authz_path_is_ancestor (b->repos_path,
-                                 section_name) == FALSE)
+  if (svn_path_is_ancestor (b->qualified_repos_path,
+                            section_name) == FALSE
+      && svn_path_is_ancestor (b->repos_path,
+                               section_name) == FALSE)
     return TRUE;
 
   /* Work out what this section grants. */


