mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 03:49:20 +03:00
Removed unused progress info allocation.
This commit is contained in:
parent
bb03664bfd
commit
d9ef991448
1 changed files with 0 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue