From ba008ab5181f1c96fba269271a3b3f0abf64968d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Fri, 29 Dec 2017 12:36:56 +0100 Subject: [PATCH] Remove unused function --- lib/cartodb/controllers/named_maps_admin.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/cartodb/controllers/named_maps_admin.js b/lib/cartodb/controllers/named_maps_admin.js index 87259f7e..854d6df0 100644 --- a/lib/cartodb/controllers/named_maps_admin.js +++ b/lib/cartodb/controllers/named_maps_admin.js @@ -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);