From e718c5e66d4dc5ef9e19a76cbbb80cb0274ef2b7 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Mon, 25 Nov 2024 16:36:36 +0100 Subject: [PATCH] Remove unused function --- src/main.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 3300d0a..73f7324 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3,7 +3,6 @@ #include #include #include -#include #include #include #include @@ -23,18 +22,6 @@ int min_digits {0}; int min_symbols {0}; int min_special {0}; -void validate_range(const std::string& arg, int& min_val, int& max_val) { - std::regex pat {R"((\d+)(?:-(\d+))?)"}; - std::smatch match; - if (std::regex_match(arg, match, pat)) { - min_val = std::atoi(match[1].str().c_str()); - if (match.size() > 2) { - max_val = std::atoi(match[2].str().c_str()); - } - } - throw std::runtime_error("invalid range"); -} - int main(int argc, char* argv[]) { try { bool noflags {true};