aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg_Maps.h11
-rw-r--r--toolsrc/include/vcpkg_Sets.h17
2 files changed, 0 insertions, 28 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);
- }
- }
-}