From 52cc112d962920b035c870127784bcbd98948fad Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Sat, 18 Jul 2020 13:51:21 -0700 Subject: Remove middlewares Middlewares, while kinda cool from an academic standpoint, make our build times even worse than they already are. Given that we only really use 1 real middleware today (token auth) and it needs to move into the parser mode anyway (for security limiting buffer sizes), we might as well use this as an opportunity to delete some code. Some other things that happen: 1. Persistent data now moves out of the crow namespace 2. App is no longer a template 3. All request_routes implementations no longer become templates. This should be a decent (unmeasured) win on compile times. This commit was part of a commit previously called "various cleanups". This separates ONLY the middleware deletion part of that. Note, this also deletes about 400 lines of hard to understand code. Change-Id: I4c19e25491a153a2aa2e4ef46fc797bcb5b3581a Signed-off-by: Ed Tanous --- include/kvm_websocket.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/kvm_websocket.hpp') diff --git a/include/kvm_websocket.hpp b/include/kvm_websocket.hpp index 6db06fce0c..4b56f23d67 100644 --- a/include/kvm_websocket.hpp +++ b/include/kvm_websocket.hpp @@ -5,7 +5,6 @@ #include #include -#include namespace crow { @@ -155,7 +154,7 @@ static boost::container::flat_map> sessions; -inline void requestRoutes(CrowApp& app) +inline void requestRoutes(App& app) { sessions.reserve(maxSessions); -- cgit v1.2.3