From cb125e0251bedf2d49b52d6060edc4b507ed4f13 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 5 Mar 2017 14:22:15 +0000 Subject: Remove debug transfer callback --- gentoobrowse-api/service/utils/git.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/gentoobrowse-api/service/utils/git.cpp b/gentoobrowse-api/service/utils/git.cpp index 7e1ce71..40241f7 100644 --- a/gentoobrowse-api/service/utils/git.cpp +++ b/gentoobrowse-api/service/utils/git.cpp @@ -25,12 +25,6 @@ namespace Gentoo { git_libgit2_shutdown(); } - int show(const git_transfer_progress * p, void *) - { - fprintf(stderr, "%u / %u\n", p->total_objects, p->received_objects); - return 0; - } - AdHocFormatter(RefSpec, "refs/heads/%?:refs/remotes/%?/%?"); std::unique_ptr gitFetch(git_repository * repo, git_remote * remote, const char * remoteBranchName) @@ -38,7 +32,6 @@ namespace Gentoo { git_fetch_options opts = GIT_FETCH_OPTIONS_INIT; opts.prune = GIT_FETCH_PRUNE; opts.update_fetchhead = 1; - opts.callbacks.transfer_progress = show; auto localBranch = gitSafeGet(git_repository_head, git_reference_free, repo); auto localBranchName = gitSafeGet(git_branch_name, localBranch.get()); // auto remoteBranch = gitSafeGet(git_branch_upstream, git_reference_free, localBranch.get()); -- cgit v1.2.3