Removed unused progress info allocation.

This commit is contained in:
Klaas Freitag 2013-06-07 09:18:27 +02:00
parent bb03664bfd
commit d9ef991448

View file

@ -156,7 +156,6 @@ static int _csync_push_file(CSYNC *ctx, csync_file_stat_t *st) {
int count = 0;
int flags = 0;
bool do_pre_copy_stat = false; /* do an additional stat before actually copying */
csync_progressinfo_t *pi = NULL;
csync_hbf_info_t hbf_info = { 0, 0 };
csync_progressinfo_t *progress_info = NULL;
@ -175,14 +174,6 @@ static int _csync_push_file(CSYNC *ctx, csync_file_stat_t *st) {
hbf_info.transfer_id = progress_info->transferId;
}
pi = csync_statedb_get_progressinfo(ctx, st->phash, st->modtime, st->md5);
if (pi && pi->error > 3) {
if (!st->error_string && pi->error_string)
st->error_string = c_strdup(pi->error_string);
rc = 1;
goto out;
}
rep_bak = ctx->replica;
auri = csync_rename_adjust_path(ctx, st->path);