diff --git a/src/vcpkg/dependencies.cpp b/src/vcpkg/dependencies.cpp index 6c69fe82d8..b6ac5475a9 100644 --- a/src/vcpkg/dependencies.cpp +++ b/src/vcpkg/dependencies.cpp @@ -1329,8 +1329,6 @@ namespace vcpkg::Dependencies const std::string& feature, const std::string& origin); - void enable_default_features(std::pair& ref, const std::string& origin); - void add_feature_to(std::pair& ref, VersionSchemeInfo& vsi, const std::string& feature); @@ -1520,22 +1518,6 @@ namespace vcpkg::Dependencies } } - void VersionedPackageGraph::enable_default_features(std::pair& ref, - const std::string& origin) - { - (void)origin; - if (!ref.second.default_features) - { - ref.second.default_features = true; - ref.second.foreach_vsi([this, &ref](VersionSchemeInfo& vsi) { - for (auto&& f : vsi.scfl->source_control_file->core_paragraph->default_features) - { - this->add_feature_to(ref, vsi, f); - } - }); - } - } - void VersionedPackageGraph::add_dependency_from(std::pair& ref, const Dependency& dep, const std::string& origin) @@ -1807,10 +1789,6 @@ namespace vcpkg::Dependencies { request_port_feature(node, f, toplevel.name()); } - if (Util::find(dep.features, "core") == dep.features.end()) - { - enable_default_features(node, toplevel.name()); - } } }