diff --git a/src/csync_util.c b/src/csync_util.c index 17255d664..81ce3bb8f 100644 --- a/src/csync_util.c +++ b/src/csync_util.c @@ -293,32 +293,3 @@ out: return rc; } - -/* Normalize the uri to / */ -uint64_t csync_create_statedb_hash(CSYNC *ctx) { - char *host = NULL; - char *path = NULL; - char name[PATH_MAX] = {0}; - uint64_t hash = 0; - - if (c_parse_uri(ctx->remote.uri, NULL, NULL, NULL, &host, NULL, &path) < 0) { - SAFE_FREE(host); - SAFE_FREE(path); - return 0; - } - - /* len + 1 for \0 */ - snprintf(name, sizeof(name), "%s:%s%s", ctx->local.uri, host ? host : "", path); - - CSYNC_LOG(CSYNC_LOG_PRIORITY_INFO, - "Normalized path for the statedb hash: %s", name); - - hash = c_jhash64((uint8_t *) name, strlen(name), 0); - - SAFE_FREE(host); - SAFE_FREE(path); - - return hash; -} - -/* vim: set ts=8 sw=2 et cindent: */ diff --git a/src/csync_util.h b/src/csync_util.h index e7231b85d..b67d70393 100644 --- a/src/csync_util.h +++ b/src/csync_util.h @@ -33,8 +33,4 @@ int csync_merge_file_trees(CSYNC *ctx); int csync_unix_extensions(CSYNC *ctx); -/* Normalize the uri to / */ -uint64_t csync_create_statedb_hash(CSYNC *ctx); - #endif /* _CSYNC_UTIL_H */ -/* vim: set ft=c.doxygen ts=8 sw=2 et cindent: */