From 74fbd3acd5d2128e94dad2a0a5f705e93bb49e9a Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Sat, 1 Apr 2017 01:09:34 -0700 Subject: [PATCH] [vcpkg] Dead code elimination --- toolsrc/include/vcpkg_Maps.h | 11 ----------- toolsrc/include/vcpkg_Sets.h | 17 ----------------- toolsrc/vcpkglib/vcpkglib.vcxproj | 1 - toolsrc/vcpkglib/vcpkglib.vcxproj.filters | 3 --- 4 files changed, 32 deletions(-) delete mode 100644 toolsrc/include/vcpkg_Sets.h diff --git a/toolsrc/include/vcpkg_Maps.h b/toolsrc/include/vcpkg_Maps.h index 5e2f92f551..0122b8bfbb 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 ec48008646..0000000000 --- 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); - } - } -} diff --git a/toolsrc/vcpkglib/vcpkglib.vcxproj b/toolsrc/vcpkglib/vcpkglib.vcxproj index b0a4784ba0..c6ba877d03 100644 --- a/toolsrc/vcpkglib/vcpkglib.vcxproj +++ b/toolsrc/vcpkglib/vcpkglib.vcxproj @@ -176,7 +176,6 @@ - diff --git a/toolsrc/vcpkglib/vcpkglib.vcxproj.filters b/toolsrc/vcpkglib/vcpkglib.vcxproj.filters index 086f3ccf32..c06e216ef3 100644 --- a/toolsrc/vcpkglib/vcpkglib.vcxproj.filters +++ b/toolsrc/vcpkglib/vcpkglib.vcxproj.filters @@ -254,9 +254,6 @@ Header Files - - Header Files - Header Files