[vcpkg] Dead code elimination
MODIFY
include/vcpkg_Maps.h
include/vcpkg_Maps.h
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)
{

DELETE
include/vcpkg_Sets.h
-#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);
- }
- }
-}

MODIFY
vcpkglib/vcpkglib.vcxproj
vcpkglib/vcpkglib.vcxproj
<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" />

MODIFY
vcpkglib/vcpkglib.vcxproj.filters
vcpkglib/vcpkglib.vcxproj.filters
<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>

[vcpkg] Dead code elimination