diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-08-26 00:35:52 +0200 |
---|---|---|
committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-08-26 00:42:28 +0200 |
commit | 2b175ca972f2531e5ef46d24abeb831d90033a33 (patch) | |
tree | 873955c2c00479a19396406c77f805a5545845cc /src/indexer.c | |
parent | cc1d85d1da7fd0e51ea0e3ddfbe516c043c95731 (diff) | |
download | libgit2-2b175ca972f2531e5ef46d24abeb831d90033a33.tar.gz |
indexer: kill git_indexer_stats.data_received
It's not really needed with the current code as we have EOS and the
sideband's flush to tell us we're done.
Keep the distinction between processed and received objects.
Diffstat (limited to 'src/indexer.c')
-rw-r--r-- | src/indexer.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/indexer.c b/src/indexer.c index 719f54e24..85ffb161f 100644 --- a/src/indexer.c +++ b/src/indexer.c @@ -383,14 +383,6 @@ int git_indexer_stream_add(git_indexer_stream *idx, const void *data, size_t siz stats->received++; } - /* - * If we've received all of the objects and our packfile is - * one hash beyond the end of the last object, all of the - * packfile is here. - */ - if (stats->received == idx->nr_objects && idx->pack->mwf.size >= idx->off + 20) - stats->data_received = 1; - return 0; on_error: |