From 74fbd3acd5d2128e94dad2a0a5f705e93bb49e9a Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Sat, 1 Apr 2017 01:09:34 -0700 Subject: [vcpkg] Dead code elimination --- toolsrc/include/vcpkg_Maps.h | 11 ----------- toolsrc/include/vcpkg_Sets.h | 17 ----------------- 2 files changed, 28 deletions(-) delete mode 100644 toolsrc/include/vcpkg_Sets.h (limited to 'toolsrc/include') 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 @@ -6,17 +6,6 @@ namespace vcpkg::Maps { - template - std::unordered_set extract_key_set(const std::unordered_map& input_map) - { - std::unordered_set key_set; - for (auto const& element : input_map) - { - key_set.insert(element.first); - } - return key_set; - } - template std::vector extract_keys(const std::unordered_map& input_map) { 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 - -namespace vcpkg::Sets -{ - template - void remove_all(std::unordered_set* 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); - } - } -} -- cgit v1.2.3