diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-10-15 23:23:39 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-10-15 23:23:45 -0700 |
| commit | 6942c00a453c9fa4f9fbde7ba821974110b43d57 (patch) | |
| tree | 02e7369dbef51c667b20f6c05910bc55d3053a47 | |
| parent | 93497f5eab0c1628cc5b1a3a9a671c069c8f8533 (diff) | |
| download | vcpkg-6942c00a453c9fa4f9fbde7ba821974110b43d57.tar.gz vcpkg-6942c00a453c9fa4f9fbde7ba821974110b43d57.zip | |
[triplet] Remove obsolete check about dash in the name
Triplets haven't required that for a while now
| -rw-r--r-- | toolsrc/src/vcpkg/triplet.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/toolsrc/src/vcpkg/triplet.cpp b/toolsrc/src/vcpkg/triplet.cpp index 8a84ee2b2..4ebb97a9b 100644 --- a/toolsrc/src/vcpkg/triplet.cpp +++ b/toolsrc/src/vcpkg/triplet.cpp @@ -41,9 +41,6 @@ namespace vcpkg Triplet Triplet::from_canonical_name(const std::string& triplet_as_string) { std::string s(Strings::ascii_to_lowercase(triplet_as_string)); - const auto it = std::find(s.cbegin(), s.cend(), '-'); - Checks::check_exit(VCPKG_LINE_INFO, it != s.cend(), "Invalid triplet: %s", triplet_as_string); - const auto p = g_triplet_instances.emplace(std::move(s)); return &*p.first; } |
