diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-04-01 01:09:34 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-04-01 01:10:15 -0700 |
| commit | 74fbd3acd5d2128e94dad2a0a5f705e93bb49e9a (patch) | |
| tree | 0a34a7cab1074abccd17c22c53add9d155609d73 /toolsrc/include | |
| parent | 1f567081e1468f2c8db85b0fc1018fd640d09753 (diff) | |
| download | vcpkg-74fbd3acd5d2128e94dad2a0a5f705e93bb49e9a.tar.gz vcpkg-74fbd3acd5d2128e94dad2a0a5f705e93bb49e9a.zip | |
[vcpkg] Dead code elimination
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/vcpkg_Maps.h | 11 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg_Sets.h | 17 |
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); - } - } -} |
