mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 11:40:48 +08:00
[vcpkg] Dead code elimination
This commit is contained in:
parent
1f567081e1
commit
74fbd3acd5
@ -6,17 +6,6 @@
|
||||
|
||||
namespace vcpkg::Maps
|
||||
{
|
||||
template <typename K, typename V>
|
||||
std::unordered_set<K> extract_key_set(const std::unordered_map<K, V>& input_map)
|
||||
{
|
||||
std::unordered_set<K> key_set;
|
||||
for (auto const& element : input_map)
|
||||
{
|
||||
key_set.insert(element.first);
|
||||
}
|
||||
return key_set;
|
||||
}
|
||||
|
||||
template <typename K, typename V>
|
||||
std::vector<K> extract_keys(const std::unordered_map<K, V>& input_map)
|
||||
{
|
||||
|
@ -1,17 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "vcpkg_Checks.h"
|
||||
#include <unordered_set>
|
||||
|
||||
namespace vcpkg::Sets
|
||||
{
|
||||
template <typename T, typename Container>
|
||||
void remove_all(std::unordered_set<T>* input_set, Container remove_these)
|
||||
{
|
||||
Checks::check_exit(input_set != nullptr, "Input set cannot be null");
|
||||
for (const T& r : remove_these)
|
||||
{
|
||||
input_set->erase(r);
|
||||
}
|
||||
}
|
||||
}
|
@ -176,7 +176,6 @@
|
||||
<ClInclude Include="..\include\vcpkg_Maps.h" />
|
||||
<ClInclude Include="..\include\vcpkg_optional.h" />
|
||||
<ClInclude Include="..\include\vcpkg_paths.h" />
|
||||
<ClInclude Include="..\include\vcpkg_Sets.h" />
|
||||
<ClInclude Include="..\include\vcpkg_Strings.h" />
|
||||
<ClInclude Include="..\include\vcpkg_System.h" />
|
||||
<ClInclude Include="..\include\version_t.h" />
|
||||
|
@ -254,9 +254,6 @@
|
||||
<ClInclude Include="..\include\vcpkg_Maps.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\include\vcpkg_Sets.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\include\vcpkg_Strings.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
|
Loading…
Reference in New Issue
Block a user