You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2015/01/07 14:51:31 UTC
svn commit: r1650056 - in /subversion/trunk/subversion: libsvn_repos/dump.c
svnrdump/dump_editor.c
Author: julianfoad
Date: Wed Jan 7 13:51:30 2015
New Revision: 1650056
URL: http://svn.apache.org/r1650056
Log:
Remove unused buffers and obsolete comments.
* subversion/libsvn_repos/dump.c
(edit_baton,
filter_mergeinfo_paths_baton): Remove unused buffers.
(check_mergeinfo_normalization,
get_dump_editor): Remove initialization of those buffers.
(dump_node): Remove comment about a nonexistent buffer.
* subversion/svnrdump/dump_editor.c
(dump_node): Remove comment about a nonexistent buffer.
Modified:
subversion/trunk/subversion/libsvn_repos/dump.c
subversion/trunk/subversion/svnrdump/dump_editor.c
Modified: subversion/trunk/subversion/libsvn_repos/dump.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/dump.c?rev=1650056&r1=1650055&r2=1650056&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/dump.c (original)
+++ subversion/trunk/subversion/libsvn_repos/dump.c Wed Jan 7 13:51:30 2015
@@ -426,10 +426,6 @@ struct edit_baton
revisions older than OLDEST_DUMPED_REV. */
svn_boolean_t *found_old_mergeinfo;
- /* reusable buffer for writing file contents */
- char buffer[SVN__STREAM_CHUNK_SIZE];
- apr_size_t bufsize;
-
/* Structure allows us to verify the paths currently being dumped.
If NULL, validity checks are being skipped. */
path_tracker_t *path_tracker;
@@ -693,7 +689,6 @@ extract_mergeinfo_paths(void *baton, con
struct filter_mergeinfo_paths_baton
{
apr_hash_t *paths;
- svn_membuf_t buffer;
};
/* Compare two sets of denormalized paths from mergeinfo entries,
@@ -800,7 +795,6 @@ check_mergeinfo_normalization(const char
normalized_paths = extract_baton.result;
filter_baton.paths = added_paths;
- filter_baton.buffer = extract_baton.buffer;
SVN_ERR(svn_iter_apr_hash(NULL, oldinfo,
filter_mergeinfo_paths,
&filter_baton, pool));
@@ -826,7 +820,7 @@ check_mergeinfo_normalization(const char
Write out a node record for PATH of type KIND under EB->FS_ROOT.
ACTION describes what is happening to the node (see enum svn_node_action).
- Write record to writable EB->STREAM, using EB->BUFFER to write in chunks.
+ Write record to writable EB->STREAM.
If the node was itself copied, IS_COPY is TRUE and the
path/revision of the copy source are in CMP_PATH/CMP_REV. If
@@ -1651,7 +1645,6 @@ get_dump_editor(const svn_delta_editor_t
eb->notify_func = notify_func;
eb->notify_baton = notify_baton;
eb->oldest_dumped_rev = oldest_dumped_rev;
- eb->bufsize = sizeof(eb->buffer);
eb->path = apr_pstrdup(pool, root_path);
SVN_ERR(svn_fs_revision_root(&(eb->fs_root), fs, to_rev, pool));
eb->fs = fs;
Modified: subversion/trunk/subversion/svnrdump/dump_editor.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnrdump/dump_editor.c?rev=1650056&r1=1650055&r2=1650056&view=diff
==============================================================================
--- subversion/trunk/subversion/svnrdump/dump_editor.c (original)
+++ subversion/trunk/subversion/svnrdump/dump_editor.c Wed Jan 7 13:51:30 2015
@@ -351,8 +351,7 @@ do_dump_newlines(struct dump_edit_baton
/*
* Write out a node record for PATH of type KIND under EB->FS_ROOT.
* ACTION describes what is happening to the node (see enum
- * svn_node_action). Write record to writable EB->STREAM, using
- * EB->BUFFER to write in chunks.
+ * svn_node_action). Write record to writable EB->STREAM.
*
* If the node was itself copied, IS_COPY is TRUE and the
* path/revision of the copy source are in COPYFROM_PATH/COPYFROM_REV.