[vcpkg] Dead code elimination

This commit is contained in:
Robert Schumacher 2017-04-01 01:09:34 -07:00
parent 1f567081e1
commit 74fbd3acd5
4 changed files with 0 additions and 32 deletions

View File

@ -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)
{

View File

@ -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);
}
}
}

View File

@ -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" />

View File

@ -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>