You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2014/10/19 00:14:41 UTC
svn commit: r1632852 - /subversion/trunk/subversion/libsvn_fs_fs/stats.c
Author: stefan2
Date: Sat Oct 18 22:14:41 2014
New Revision: 1632852
URL: http://svn.apache.org/r1632852
Log:
Remove a couple of unused fields from the FSFS stats internal data model.
* subversion/libsvn_fs_fs/stats.c
(rep_stats_t): Remove write-only members.
(parse_representation): No longer write those fields.
Modified:
subversion/trunk/subversion/libsvn_fs_fs/stats.c
Modified: subversion/trunk/subversion/libsvn_fs_fs/stats.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/stats.c?rev=1632852&r1=1632851&r2=1632852&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/stats.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/stats.c Sat Oct 18 22:14:41 2014
@@ -91,9 +91,6 @@ typedef struct rep_stats_t
/* item length after de-deltification */
apr_size_t expanded_size;
- /* deltification base, or NULL if there is none */
- struct rep_stats_t *delta_base;
-
/* revision that contains this representation
* (may be referenced by other revisions, though) */
svn_revnum_t revision;
@@ -107,10 +104,6 @@ typedef struct rep_stats_t
/* classification of the representation. values of rep_kind_t */
char kind;
- /* the source content has a PLAIN header, so we may simply copy the
- * source content into the target */
- char is_plain;
-
} rep_stats_t;
/* Represents a single revision.
@@ -578,7 +571,6 @@ parse_representation(rep_stats_t **repre
{
svn_fs_fs__rep_header_t *header;
svn_stream_t *stream;
- int idx2;
svn_string_t content;
content.data = file_content->data + (apr_size_t)rep->item_index;
@@ -589,11 +581,6 @@ parse_representation(rep_stats_t **repre
scratch_pool, scratch_pool));
result->header_size = header->header_size;
- result->is_plain = header->type == svn_fs_fs__rep_plain;
- if (header->type == svn_fs_fs__rep_delta)
- result->delta_base = find_representation(&idx2, query, NULL,
- header->base_revision,
- header->base_item_index);
}
svn_sort__array_insert(revision_info->representations, &result, idx);