From ad8d50be4016e68a4ab8d765bd9b45a9fdae1a6d Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 4 Sep 2021 12:38:40 +0300 Subject: Simplify authenticate_*() and rep_fetch() functions semantics --- bpkg/auth.cxx | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'bpkg/auth.cxx') diff --git a/bpkg/auth.cxx b/bpkg/auth.cxx index 08f6b11..ca187ed 100644 --- a/bpkg/auth.cxx +++ b/bpkg/auth.cxx @@ -644,11 +644,6 @@ namespace bpkg if (co.trust_no () && co.trust_yes ()) fail << "--trust-yes and --trust-no are mutually exclusive"; - if (conf != nullptr && conf->empty ()) - conf = exists (bpkg_dir) ? ¤t_dir : nullptr; - - assert (conf == nullptr || !conf->empty ()); - shared_ptr r; if (conf == nullptr) @@ -694,11 +689,6 @@ namespace bpkg { tracer trace ("authenticate_repository"); - if (conf != nullptr && conf->empty ()) - conf = exists (bpkg_dir) ? ¤t_dir : nullptr; - - assert (conf == nullptr || !conf->empty ()); - path f; auto_rmfile rm; -- cgit v1.1