From 79d5e19a650cc5718aedd41e8a2f6dea7e1c2f43 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Wed, 5 Dec 2012 12:38:57 +0100 Subject: [PATCH] Remove left over WIP code. --- src/csync.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/csync.c b/src/csync.c index bfa0429270..807efc5d64 100644 --- a/src/csync.c +++ b/src/csync.c @@ -390,18 +390,6 @@ int csync_update(CSYNC *ctx) { ctx->replica = ctx->remote.type; rc = csync_ftw(ctx, ctx->remote.uri, csync_walker, MAX_DEPTH); -#if WIP - /* This code checks if the remote tree is empty but the local is not. That - * could mean that the user has created his server dir new and hopes that his - * local content is going to be synced up. That does not happen, as the new - * dir is probably newer. A client can react on the CSYNC_ERR_REMOTE_CLEANUP - * with a user question. - */ - if( c_rbtree_size(ctx->remote.tree) == 0 && c_rbtree_size(ctx->local.tree) > 0 ) { - ctx->error_code = CSYNC_ERR_REMOTE_CLEANUP; - return -1; - } -#endif csync_gettime(&finish); CSYNC_LOG(CSYNC_LOG_PRIORITY_DEBUG,