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 81C3810AEE for ; Fri, 16 Jan 2015 14:42:56 +0000 (UTC) Received: (qmail 33347 invoked by uid 500); 16 Jan 2015 14:42:58 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 33313 invoked by uid 500); 16 Jan 2015 14:42:58 -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 33302 invoked by uid 99); 16 Jan 2015 14:42:58 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Jan 2015 14:42:58 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id 05A6AAC005A; Fri, 16 Jan 2015 14:42:58 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1652424 - /subversion/trunk/subversion/svnrdump/load_editor.c Date: Fri, 16 Jan 2015 14:42:57 -0000 To: commits@subversion.apache.org From: julianfoad@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150116144258.05A6AAC005A@hades.apache.org> Author: julianfoad Date: Fri Jan 16 14:42:57 2015 New Revision: 1652424 URL: http://svn.apache.org/r1652424 Log: * subversion/svnrdump/load_editor.c (parse_baton, directory_baton): Remove unused fields... (uuid_record, new_node_record): ... and the assignments to them. Modified: subversion/trunk/subversion/svnrdump/load_editor.c Modified: subversion/trunk/subversion/svnrdump/load_editor.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnrdump/load_editor.c?rev=1652424&r1=1652423&r2=1652424&view=diff ============================================================================== --- subversion/trunk/subversion/svnrdump/load_editor.c (original) +++ subversion/trunk/subversion/svnrdump/load_editor.c Fri Jan 16 14:42:57 2015 @@ -66,9 +66,6 @@ struct parse_baton /* To bleep, or not to bleep? (What kind of question is that?) */ svn_boolean_t quiet; - /* UUID found in the dumpstream, if any; NULL otherwise. */ - const char *uuid; - /* Root URL of the target repository. */ const char *root_url; @@ -99,13 +96,12 @@ struct parse_baton /** * Use to wrap the dir_context_t in commit.c so we can keep track of - * depth, relpath and parent for open_directory and close_directory. + * relpath and parent for open_directory and close_directory. */ struct directory_baton { void *baton; const char *relpath; - int depth; struct directory_baton *parent; }; @@ -590,9 +586,6 @@ uuid_record(const char *uuid, void *parse_baton, apr_pool_t *pool) { - struct parse_baton *pb; - pb = parse_baton; - pb->uuid = apr_pstrdup(pool, uuid); return SVN_NO_ERROR; } @@ -652,7 +645,6 @@ new_node_record(void **node_baton, /* child_db corresponds to the root directory baton here */ child_db = apr_pcalloc(rb->pool, sizeof(*child_db)); child_db->baton = child_baton; - child_db->depth = 0; child_db->relpath = ""; child_db->parent = NULL; rb->db = child_db; @@ -736,7 +728,6 @@ new_node_record(void **node_baton, LDR_DBG(("Opened dir %p\n", child_baton)); child_db = apr_pcalloc(rb->pool, sizeof(*child_db)); child_db->baton = child_baton; - child_db->depth = rb->db->depth + 1; child_db->relpath = relpath_compose; child_db->parent = rb->db; rb->db = child_db; @@ -804,7 +795,6 @@ new_node_record(void **node_baton, nb->path, rb->db->baton, child_baton)); child_db = apr_pcalloc(rb->pool, sizeof(*child_db)); child_db->baton = child_baton; - child_db->depth = rb->db->depth + 1; child_db->relpath = apr_pstrdup(rb->pool, nb->path); child_db->parent = rb->db; rb->db = child_db; @@ -827,7 +817,6 @@ new_node_record(void **node_baton, rb->pool, &child_baton)); child_db = apr_pcalloc(rb->pool, sizeof(*child_db)); child_db->baton = child_baton; - child_db->depth = rb->db->depth + 1; child_db->relpath = apr_pstrdup(rb->pool, nb->path); child_db->parent = rb->db; rb->db = child_db;