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 2010/09/09 19:31:48 UTC

svn commit: r995507 - /subversion/branches/performance/subversion/libsvn_repos/dump.c

Author: hwright
Date: Thu Sep  9 17:31:47 2010
New Revision: 995507

URL: http://svn.apache.org/viewvc?rev=995507&view=rev
Log:
On the performance branch:
Remove a superfluous function.

* subversion/libsvn_repos/dump.c
  (write_hash_to_stringbuf): This function is no longer present on trunk,
    but still managed to survive on this branch.

Modified:
    subversion/branches/performance/subversion/libsvn_repos/dump.c

Modified: subversion/branches/performance/subversion/libsvn_repos/dump.c
URL: http://svn.apache.org/viewvc/subversion/branches/performance/subversion/libsvn_repos/dump.c?rev=995507&r1=995506&r2=995507&view=diff
==============================================================================
--- subversion/branches/performance/subversion/libsvn_repos/dump.c (original)
+++ subversion/branches/performance/subversion/libsvn_repos/dump.c Thu Sep  9 17:31:47 2010
@@ -42,85 +42,6 @@
 /*----------------------------------------------------------------------*/
 
 
-static void
-write_hash_to_stringbuf(apr_hash_t *hash,
-                        apr_hash_t *oldhash,
-                        svn_stringbuf_t **strbuf,
-                        apr_pool_t *pool)
-{
-  apr_hash_index_t *this;      /* current hash entry */
-
-  *strbuf = svn_stringbuf_create("", pool);
-
-  for (this = apr_hash_first(pool, hash); this; this = apr_hash_next(this))
-    {
-      const void *key;
-      void *val;
-      apr_ssize_t keylen;
-      svn_string_t *value;
-
-      /* Get this key and val. */
-      apr_hash_this(this, &key, &keylen, &val);
-      value = val;
-
-      /* Don't output properties equal to the ones in oldhash, if present. */
-      if (oldhash)
-        {
-          svn_string_t *oldvalue = apr_hash_get(oldhash, key, keylen);
-
-          if (oldvalue && svn_string_compare(value, oldvalue))
-            continue;
-        }
-
-      /* Output name length, then name. */
-
-      svn_stringbuf_appendcstr(*strbuf,
-                               apr_psprintf(pool, "K %" APR_SSIZE_T_FMT "\n",
-                                            keylen));
-
-      svn_stringbuf_appendbytes(*strbuf, (const char *) key, keylen);
-      svn_stringbuf_appendbyte(*strbuf, '\n');
-
-      /* Output value length, then value. */
-
-      svn_stringbuf_appendcstr(*strbuf,
-                               apr_psprintf(pool, "V %" APR_SIZE_T_FMT "\n",
-                                            value->len));
-
-      svn_stringbuf_appendbytes(*strbuf, value->data, value->len);
-      svn_stringbuf_appendbyte(*strbuf, '\n');
-    }
-
-  if (oldhash)
-    {
-      /* Output a "D " entry for each property in oldhash but not hash. */
-      for (this = apr_hash_first(pool, oldhash); this;
-           this = apr_hash_next(this))
-        {
-          const void *key;
-          apr_ssize_t keylen;
-
-          /* Get this key. */
-          apr_hash_this(this, &key, &keylen, NULL);
-
-          /* Only output values deleted in hash. */
-          if (apr_hash_get(hash, key, keylen))
-            continue;
-
-          /* Output name length, then name. */
-
-          svn_stringbuf_appendcstr(*strbuf,
-                                   apr_psprintf(pool,
-                                                "D %" APR_SSIZE_T_FMT "\n",
-                                                keylen));
-
-          svn_stringbuf_appendbytes(*strbuf, (const char *) key, keylen);
-          svn_stringbuf_appendbyte(*strbuf, '\n');
-        }
-    }
-  svn_stringbuf_appendbytes(*strbuf, "PROPS-END\n", 10);
-}
-
 
 /* Compute the delta between OLDROOT/OLDPATH and NEWROOT/NEWPATH and
    store it into a new temporary file *TEMPFILE.  OLDROOT may be NULL,