Remove try_load_port() overload
MODIFY
include/vcpkglib.h
include/vcpkglib.h
@@ -22,10 +22,5 @@ namespace vcpkg
expected<SourceParagraph> try_load_port(const fs::path& control_path);
- inline expected<SourceParagraph> try_load_port(const vcpkg_paths& paths, const std::string& name)
- {
- return try_load_port(paths.ports / name);
- }
-
expected<BinaryParagraph> try_load_cached_package(const vcpkg_paths& paths, const package_spec& spec);
} // namespace vcpkg

MODIFY
src/vcpkg_Dependencies.cpp
src/vcpkg_Dependencies.cpp
@@ -80,7 +80,7 @@ namespace vcpkg::Dependencies
continue;
}
- expected<SourceParagraph> maybe_spgh = try_load_port(paths, spec.name());
+ expected<SourceParagraph> maybe_spgh = try_load_port(paths.port_dir(spec));
SourceParagraph* spgh = maybe_spgh.get();
Checks::check_exit(spgh != nullptr, "Cannot find package %s", spec.name());
process_dependencies(filter_dependencies(spgh->depends, spec.target_triplet()));

Remove try_load_port() overload