Return-Path: X-Original-To: apmail-subversion-commits-archive@minotaur.apache.org Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 88731E7D2 for ; Mon, 11 Feb 2013 10:37:06 +0000 (UTC) Received: (qmail 69375 invoked by uid 500); 11 Feb 2013 10:37:06 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 69273 invoked by uid 500); 11 Feb 2013 10:37:06 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 69245 invoked by uid 99); 11 Feb 2013 10:37:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 10:37:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 10:37:04 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 49A6F23889DE; Mon, 11 Feb 2013 10:36:45 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1444728 - /subversion/trunk/subversion/libsvn_client/diff.c Date: Mon, 11 Feb 2013 10:36:45 -0000 To: commits@subversion.apache.org From: philip@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130211103645.49A6F23889DE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: philip Date: Mon Feb 11 10:36:44 2013 New Revision: 1444728 URL: http://svn.apache.org/r1444728 Log: * subversion/libsvn_client/diff.c (make_regular_props_array, make_regular_props_hash): Remove unused functions. Modified: subversion/trunk/subversion/libsvn_client/diff.c Modified: subversion/trunk/subversion/libsvn_client/diff.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/diff.c?rev=1444728&r1=1444727&r2=1444728&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_client/diff.c (original) +++ subversion/trunk/subversion/libsvn_client/diff.c Mon Feb 11 10:36:44 2013 @@ -1636,64 +1636,6 @@ diff_wc_wc(const char *path1, return SVN_NO_ERROR; } -/* Create an array of regular properties in PROP_HASH, filtering entry-props - * and wc-props. Allocate the returned array in RESULT_POOL. - * Use SCRATCH_POOL for temporary allocations. */ -static apr_array_header_t * -make_regular_props_array(apr_hash_t *prop_hash, - apr_pool_t *result_pool, - apr_pool_t *scratch_pool) -{ - apr_array_header_t *regular_props; - apr_hash_index_t *hi; - - regular_props = apr_array_make(result_pool, 0, sizeof(svn_prop_t)); - for (hi = apr_hash_first(scratch_pool, prop_hash); hi; - hi = apr_hash_next(hi)) - { - const char *name = svn__apr_hash_index_key(hi); - svn_string_t *value = svn__apr_hash_index_val(hi); - svn_prop_kind_t prop_kind = svn_property_kind2(name); - - if (prop_kind == svn_prop_regular_kind) - { - svn_prop_t *prop = apr_palloc(scratch_pool, sizeof(svn_prop_t)); - - prop->name = name; - prop->value = value; - APR_ARRAY_PUSH(regular_props, svn_prop_t) = *prop; - } - } - - return regular_props; -} - -/* Create a hash of regular properties from PROP_HASH, filtering entry-props - * and wc-props. Allocate the returned hash in RESULT_POOL. - * Use SCRATCH_POOL for temporary allocations. */ -static apr_hash_t * -make_regular_props_hash(apr_hash_t *prop_hash, - apr_pool_t *result_pool, - apr_pool_t *scratch_pool) -{ - apr_hash_t *regular_props; - apr_hash_index_t *hi; - - regular_props = apr_hash_make(result_pool); - for (hi = apr_hash_first(scratch_pool, prop_hash); hi; - hi = apr_hash_next(hi)) - { - const char *name = svn__apr_hash_index_key(hi); - svn_string_t *value = svn__apr_hash_index_val(hi); - svn_prop_kind_t prop_kind = svn_property_kind2(name); - - if (prop_kind == svn_prop_regular_kind) - apr_hash_set(regular_props, name, APR_HASH_KEY_STRING, value); - } - - return regular_props; -} - /* Perform a diff between two repository paths. PATH_OR_URL1 and PATH_OR_URL2 may be either URLs or the working copy paths.