diff options
Diffstat (limited to 'src/other_tools/just_mr/main.cpp')
-rw-r--r-- | src/other_tools/just_mr/main.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/other_tools/just_mr/main.cpp b/src/other_tools/just_mr/main.cpp index cc33f5f3..c15970d2 100644 --- a/src/other_tools/just_mr/main.cpp +++ b/src/other_tools/just_mr/main.cpp @@ -787,18 +787,6 @@ void DefaultReachableRepositories( (*resolved_repo_desc)->Get("sha256", Expression::none_t{}); auto repo_desc_sha512 = (*resolved_repo_desc)->Get("sha512", Expression::none_t{}); - // check "special" pragma - auto repo_desc_pragma = (*resolved_repo_desc)->At("pragma"); - auto pragma_special = - repo_desc_pragma ? repo_desc_pragma->get()->At("special") - : std::nullopt; - auto pragma_special_value = - pragma_special and pragma_special->get()->IsString() and - kPragmaSpecialMap.contains( - pragma_special->get()->String()) - ? std::make_optional(kPragmaSpecialMap.at( - pragma_special->get()->String())) - : std::nullopt; ArchiveRepoInfo archive_info = { .archive = {.content = repo_desc_content->get()->String(), @@ -820,8 +808,8 @@ void DefaultReachableRepositories( .origin_from_distdir = false}, .repo_type = repo_type_str, .subdir = subdir.empty() ? "." : subdir.string(), - .ignore_special = - pragma_special_value == PragmaSpecial::Ignore}; + .pragma_special = std::nullopt // not used + }; // add to list repos_to_fetch.emplace_back(std::move(archive_info)); } |