From 10db3e58a6aeacfe1afdf88dfcee2918a224244f Mon Sep 17 00:00:00 2001 From: Quinten Date: Tue, 11 Nov 2025 16:29:44 +0100 Subject: [PATCH] fix: remove unused isMethodSupported function from Router class --- webserv/router/Router.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/webserv/router/Router.cpp b/webserv/router/Router.cpp index 0b1ae47..11f66ae 100644 --- a/webserv/router/Router.cpp +++ b/webserv/router/Router.cpp @@ -29,17 +29,6 @@ Router::Router(Client *client) : client_(client) Log::trace(LOCATION); } -// bool Router::isMethodSupported(const std::string &method, const AConfig &config) noexcept -// { -// const ADirective *allowedMethods = config.getDirective("allowed_methods"); -// if (allowedMethods == nullptr || !allowedMethods->getValue().try_get>().has_value()) -// { -// return true; -// } -// auto methods = allowedMethods->getValue().get>(); -// return std::ranges::find(methods, method) != methods.end(); -// } - std::unique_ptr Router::handleRequest() { Log::trace(LOCATION);