Remove unused function

This commit is contained in:
Daniel García Aubert
2017-12-29 12:36:56 +01:00
parent e4ed6ee1cc
commit ba008ab518
@@ -212,14 +212,6 @@ function finishFn(controller, req, res, description, status, next) {
};
}
function ifUnauthenticated(authenticated, description) {
if (!authenticated) {
var err = new Error(description);
err.http_status = 403;
throw err;
}
}
function ifInvalidContentType(req, description) {
if (!req.is('application/json')) {
throw new Error(description);