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};