From 3a6ccea5c473c946ed22b0fbd5ab9d369326d282 Mon Sep 17 00:00:00 2001 From: Wolf Vollprecht Date: Thu, 27 Jan 2022 18:41:13 +0100 Subject: [PATCH] remove duplicated code --- libmamba/src/api/install.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libmamba/src/api/install.cpp b/libmamba/src/api/install.cpp index 6700ecb77f..2802f9999c 100644 --- a/libmamba/src/api/install.cpp +++ b/libmamba/src/api/install.cpp @@ -351,12 +351,6 @@ namespace mamba MPool pool; std::vector repos = load_channels(pool, package_caches, is_retry); - if (ctx.offline) - { - LOG_INFO << "Creating repo from pkgs_dir for offline"; - for (const auto& c : ctx.pkgs_dirs) - repos.push_back(detail::create_repo_from_pkgs_dir(pool, c)); - } PrefixData prefix_data(ctx.target_prefix); prefix_data.load();