You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2011/02/22 16:06:32 UTC

svn commit: r1073357 - /subversion/trunk/subversion/libsvn_wc/props.c

Author: hwright
Date: Tue Feb 22 15:06:32 2011
New Revision: 1073357

URL: http://svn.apache.org/viewvc?rev=1073357&view=rev
Log:
Remove dead code.

* subversion/libsvn_wc/props.c
  (read_dir_props_baton, read_dir_props): Remove, not longer called.

Modified:
    subversion/trunk/subversion/libsvn_wc/props.c

Modified: subversion/trunk/subversion/libsvn_wc/props.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/props.c?rev=1073357&r1=1073356&r2=1073357&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/props.c (original)
+++ subversion/trunk/subversion/libsvn_wc/props.c Tue Feb 22 15:06:32 2011
@@ -1668,54 +1668,6 @@ svn_wc_prop_list2(apr_hash_t **props,
                                                    scratch_pool));
 }
 
-/* Baton for read_dir_props. */
-struct read_dir_props_baton
-{
-  /* Working copy db handle. */
-  svn_wc__db_t *db;
-
-  /* The absolute path to the root of the tree being walked. */
-  const char *root_abspath;
-
-  /* The proplist receiver function and baton. */
-  svn_wc__proplist_receiver_t receiver_func;
-  void *receiver_baton;
-};
-
-/* An implementation of svn_wc__node_found_func_t. */
-static svn_error_t *
-read_dir_props(const char *local_abspath,
-               svn_node_kind_t kind,
-               void *baton,
-               apr_pool_t *scratch_pool)
-{
-  struct read_dir_props_baton *b = (struct read_dir_props_baton *)baton;
-
-  /* We only handle directories. */
-  if (kind != svn_node_dir)
-    return SVN_NO_ERROR;
-
-  /* Special case for root node of the tree. */
-  if (strcmp(local_abspath, b->root_abspath) == 0)
-    {
-      apr_hash_t *props;
-
-      SVN_ERR(svn_wc__db_read_props(&props, b->db, local_abspath,
-                                    scratch_pool, scratch_pool));
-      if (b->receiver_func && props && apr_hash_count(props) > 0)
-        SVN_ERR((*b->receiver_func)(b->receiver_baton, local_abspath,
-                                    props, scratch_pool));
-    }
-
-  /* All nodes within the tree are listed recursively as immediates. */
-  SVN_ERR(svn_wc__db_read_props_of_immediates(b->db, local_abspath,
-                                              b->receiver_func,
-                                              b->receiver_baton,
-                                              NULL, NULL,
-                                              scratch_pool));
-  return SVN_NO_ERROR;
-}
-
 svn_error_t *
 svn_wc__prop_list_recursive(svn_wc_context_t *wc_ctx,
                             const char *local_abspath,