aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-04-01 01:09:34 -0700
committerRobert Schumacher <roschuma@microsoft.com>2017-04-01 01:10:15 -0700
commit74fbd3acd5d2128e94dad2a0a5f705e93bb49e9a (patch)
tree0a34a7cab1074abccd17c22c53add9d155609d73
parent1f567081e1468f2c8db85b0fc1018fd640d09753 (diff)
downloadvcpkg-74fbd3acd5d2128e94dad2a0a5f705e93bb49e9a.tar.gz
vcpkg-74fbd3acd5d2128e94dad2a0a5f705e93bb49e9a.zip
[vcpkg] Dead code elimination
-rw-r--r--toolsrc/include/vcpkg_Maps.h11
-rw-r--r--toolsrc/include/vcpkg_Sets.h17
-rw-r--r--toolsrc/vcpkglib/vcpkglib.vcxproj1
-rw-r--r--toolsrc/vcpkglib/vcpkglib.vcxproj.filters3
4 files changed, 0 insertions, 32 deletions
diff --git a/toolsrc/include/vcpkg_Maps.h b/toolsrc/include/vcpkg_Maps.h
index 5e2f92f55..0122b8bfb 100644
--- a/toolsrc/include/vcpkg_Maps.h
+++ b/toolsrc/include/vcpkg_Maps.h
@@ -7,17 +7,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)
{
std::vector<K> key_set;
diff --git a/toolsrc/include/vcpkg_Sets.h b/toolsrc/include/vcpkg_Sets.h
deleted file mode 100644
index ec4800864..000000000
--- a/toolsrc/include/vcpkg_Sets.h
+++ /dev/null
@@ -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);
- }
- }
-}
diff --git a/toolsrc/vcpkglib/vcpkglib.vcxproj b/toolsrc/vcpkglib/vcpkglib.vcxproj
index b0a4784ba..c6ba877d0 100644
--- a/toolsrc/vcpkglib/vcpkglib.vcxproj
+++ b/toolsrc/vcpkglib/vcpkglib.vcxproj
@@ -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" />
diff --git a/toolsrc/vcpkglib/vcpkglib.vcxproj.filters b/toolsrc/vcpkglib/vcpkglib.vcxproj.filters
index 086f3ccf3..c06e216ef 100644
--- a/toolsrc/vcpkglib/vcpkglib.vcxproj.filters
+++ b/toolsrc/vcpkglib/vcpkglib.vcxproj.filters
@@ -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>