diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-09-28 12:39:05 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-09-29 15:00:40 -0700 |
| commit | fb1130876f228464254e3e818fae42445405f6ed (patch) | |
| tree | 879e126efe14076434eca350a7aae44aba3b6515 /toolsrc/src/triplet.cpp | |
| parent | ac2e248e8f6c482811e33bcc1f311b0543be2d80 (diff) | |
| download | vcpkg-fb1130876f228464254e3e818fae42445405f6ed.tar.gz vcpkg-fb1130876f228464254e3e818fae42445405f6ed.zip | |
Valiting triplets is now the responsibility of vcpkg_paths
Diffstat (limited to 'toolsrc/src/triplet.cpp')
| -rw-r--r-- | toolsrc/src/triplet.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/toolsrc/src/triplet.cpp b/toolsrc/src/triplet.cpp index 080198f2b..e3a935958 100644 --- a/toolsrc/src/triplet.cpp +++ b/toolsrc/src/triplet.cpp @@ -1,6 +1,4 @@ #include "triplet.h" -#include "vcpkg.h" -#include "vcpkg_System.h" #include "vcpkg_Checks.h" namespace vcpkg @@ -49,19 +47,4 @@ namespace vcpkg Checks::check_exit(it != this->value.end(), "Invalid triplet: %s", this->value); return std::string(it + 1, this->value.cend()); } - - bool triplet::validate(const vcpkg_paths& paths) const - { - auto it = fs::directory_iterator(paths.triplets); - for (; it != fs::directory_iterator(); ++it) - { - std::string triplet_file_name = it->path().stem().generic_u8string(); - if (this->value == triplet_file_name) // TODO: fuzzy compare - { - //this->value = triplet_file_name; // NOTE: uncomment when implementing fuzzy compare - return true; - } - } - return false; - } } |
