From 892cd420da66cb35b0e16b16f5a68a6cb58a4f67 Mon Sep 17 00:00:00 2001 From: antao Date: Sun, 28 Oct 2018 15:38:22 +0800 Subject: [PATCH] Remove unused files --- create_filter.cc | 27 --------------------------- create_filter.h | 20 -------------------- 2 files changed, 47 deletions(-) delete mode 100644 create_filter.cc delete mode 100644 create_filter.h diff --git a/create_filter.cc b/create_filter.cc deleted file mode 100644 index 9a351a1b..00000000 --- a/create_filter.cc +++ /dev/null @@ -1,27 +0,0 @@ -/** - * - * create_filter.cc - * - * drogon_ctl - * - */ - -#include "create_filter.h" - -using namespace drogon; -void create_filter::doFilter(const HttpRequestPtr &req, - const FilterCallback &fcb, - const FilterChainCallback &fccb) -{ - //Edit your logic here - if (1) - { - //Passed - fccb(); - return; - } - //Check failed - auto res = drogon::HttpResponse::newHttpResponse(); - res->setStatusCode(HttpResponse::k500InternalServerError); - fcb(res); -} diff --git a/create_filter.h b/create_filter.h deleted file mode 100644 index 3c9e372d..00000000 --- a/create_filter.h +++ /dev/null @@ -1,20 +0,0 @@ -/** - * - * create_filter.h - * drogon_ctl - * - */ - -#pragma once - -#include -using namespace drogon; - -class create_filter : public HttpFilter -{ - public: - create_filter() {} - virtual void doFilter(const HttpRequestPtr &req, - const FilterCallback &fcb, - const FilterChainCallback &fccb) override; -};