mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 16:53:02 +08:00
Remove unused variable from create_remove_plan()
This commit is contained in:
parent
fcafe9acea
commit
b39b2d298d
@ -75,5 +75,5 @@ namespace vcpkg::Dependencies
|
||||
|
||||
std::vector<package_spec_with_install_plan> create_install_plan(const vcpkg_paths& paths, const std::vector<package_spec>& specs, const StatusParagraphs& status_db);
|
||||
|
||||
std::vector<package_spec_with_remove_plan> create_remove_plan(const vcpkg_paths& paths, const std::vector<package_spec>& specs, const StatusParagraphs& status_db);
|
||||
std::vector<package_spec_with_remove_plan> create_remove_plan(const std::vector<package_spec>& specs, const StatusParagraphs& status_db);
|
||||
}
|
||||
|
@ -176,7 +176,7 @@ namespace vcpkg::Commands::Remove
|
||||
const bool alsoRemoveFolderFromPackages = options.find(OPTION_PURGE) != options.end();
|
||||
const bool isRecursive = options.find(OPTION_RECURSE) != options.end();
|
||||
|
||||
const std::vector<package_spec_with_remove_plan> remove_plan = Dependencies::create_remove_plan(paths, specs, status_db);
|
||||
const std::vector<package_spec_with_remove_plan> remove_plan = Dependencies::create_remove_plan(specs, status_db);
|
||||
Checks::check_exit(!remove_plan.empty(), "Remove plan cannot be empty");
|
||||
|
||||
print_plan(remove_plan);
|
||||
|
@ -97,7 +97,7 @@ namespace vcpkg::Dependencies
|
||||
return ret;
|
||||
}
|
||||
|
||||
std::vector<package_spec_with_remove_plan> create_remove_plan(const vcpkg_paths& paths, const std::vector<package_spec>& specs, const StatusParagraphs& status_db)
|
||||
std::vector<package_spec_with_remove_plan> create_remove_plan(const std::vector<package_spec>& specs, const StatusParagraphs& status_db)
|
||||
{
|
||||
std::unordered_set<package_spec> specs_as_set(specs.cbegin(), specs.cend());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user