diff options
| author | Victor Romero <romerosanchezv@gmail.com> | 2020-01-17 14:21:19 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-17 14:21:19 -0800 |
| commit | f56645c3fd9a1561c430e90ce00836489b372ef8 (patch) | |
| tree | 6621f8dd902d8f6a4ad6d3cdff5a3659686c1159 /toolsrc/src/vcpkg.cpp | |
| parent | bf3e071e53bf46cba8857859f853dcc8898db817 (diff) | |
| download | vcpkg-f56645c3fd9a1561c430e90ce00836489b372ef8.tar.gz vcpkg-f56645c3fd9a1561c430e90ce00836489b372ef8.zip | |
Community Triplets 🤝 (#7976)
* Move untested triplets to Community Triplets
* Document community triplets
* Load community triplets by default and alert when using one
* [triplets] Merge documentation of community triplets
* Bump version
Diffstat (limited to 'toolsrc/src/vcpkg.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/toolsrc/src/vcpkg.cpp b/toolsrc/src/vcpkg.cpp index c336d2f63..2dd13f43d 100644 --- a/toolsrc/src/vcpkg.cpp +++ b/toolsrc/src/vcpkg.cpp @@ -262,29 +262,6 @@ static void load_config() } #if defined(_WIN32) -static std::string trim_path_from_command_line(const std::string& full_command_line) -{ - Checks::check_exit( - VCPKG_LINE_INFO, !full_command_line.empty(), "Internal failure - cannot have empty command line"); - - if (full_command_line[0] == '"') - { - auto it = std::find(full_command_line.cbegin() + 1, full_command_line.cend(), '"'); - if (it != full_command_line.cend()) // Skip over the quote - ++it; - while (it != full_command_line.cend() && *it == ' ') // Skip over a space - ++it; - return std::string(it, full_command_line.cend()); - } - - auto it = std::find(full_command_line.cbegin(), full_command_line.cend(), ' '); - while (it != full_command_line.cend() && *it == ' ') - ++it; - return std::string(it, full_command_line.cend()); -} -#endif - -#if defined(_WIN32) // note: this prevents a false positive for -Wmissing-prototypes on clang-cl int wmain(int, const wchar_t* const*); int wmain(const int argc, const wchar_t* const* const argv) |
