diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-03-31 17:13:58 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-03-31 17:13:58 -0700 |
| commit | 17b4d1cb5cda8e023a31cd86960c86caa2e72fca (patch) | |
| tree | 6223ed7138af0bec090a63b5a82515d28446379d | |
| parent | 9b62a4b207507db614c66a17b85479971fbf62eb (diff) | |
| download | vcpkg-17b4d1cb5cda8e023a31cd86960c86caa2e72fca.tar.gz vcpkg-17b4d1cb5cda8e023a31cd86960c86caa2e72fca.zip | |
Remove Checks::check_throw() #2
| -rw-r--r-- | toolsrc/src/vcpkg_Checks.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/toolsrc/src/vcpkg_Checks.cpp b/toolsrc/src/vcpkg_Checks.cpp index 1e4ef4c2a..e387915ef 100644 --- a/toolsrc/src/vcpkg_Checks.cpp +++ b/toolsrc/src/vcpkg_Checks.cpp @@ -36,20 +36,6 @@ namespace vcpkg::Checks exit_fail(line_info); } - __declspec(noreturn) void throw_with_message(const LineInfo& line_info, const cstring_view errorMessage) - { - print_line_info_if_debug(line_info); - throw std::runtime_error(errorMessage); - } - - void check_throw(const LineInfo& line_info, bool expression, const cstring_view errorMessage) - { - if (!expression) - { - throw_with_message(line_info, errorMessage); - } - } - void check_exit(const LineInfo& line_info, bool expression) { if (!expression) |
