aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/OptBool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/src/OptBool.cpp')
-rw-r--r--toolsrc/src/OptBool.cpp31
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);
- }
-}