diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-04-28 17:27:07 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-04-30 03:36:55 -0700 |
| commit | cbc52bc6a4f92ac4c5379912b09adb37a6ea1918 (patch) | |
| tree | ebd28c77d4268f6ac8fc1c0906ce2e279e530e63 /toolsrc/src/OptBool.cpp | |
| parent | 5419aebcfed8cf044f723e07dd785b839fd6bb5b (diff) | |
| download | vcpkg-cbc52bc6a4f92ac4c5379912b09adb37a6ea1918.tar.gz vcpkg-cbc52bc6a4f92ac4c5379912b09adb37a6ea1918.zip | |
[vcpkg] Remove OptBool in favor of Optional<bool>
Diffstat (limited to 'toolsrc/src/OptBool.cpp')
| -rw-r--r-- | toolsrc/src/OptBool.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/toolsrc/src/OptBool.cpp b/toolsrc/src/OptBool.cpp deleted file mode 100644 index 78069df6a..000000000 --- a/toolsrc/src/OptBool.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#include "pch.h" - -#include "OptBool.h" -#include "vcpkg_Checks.h" - -namespace vcpkg -{ - static const std::string UNSPECIFIED_NAME = "unspecified"; - static const std::string ENABLED_NAME = "enabled"; - static const std::string DISABLED_NAME = "disabled"; - - OptBool OptBool::parse(const std::string& s) - { - if (s == UNSPECIFIED_NAME) - { - return OptBoolC::UNSPECIFIED; - } - - if (s == ENABLED_NAME) - { - return OptBoolC::ENABLED; - } - - if (s == DISABLED_NAME) - { - return OptBoolC::DISABLED; - } - - Checks::exit_with_message(VCPKG_LINE_INFO, "Could not convert string [%s] to OptBool", s); - } -} |
