From 8c77648ca9cdacf1f1f51986ce0f3cd52d9ab9c0 Mon Sep 17 00:00:00 2001 From: Lloyd Hilaiel <lloyd@hilaiel.com> Date: Thu, 15 Sep 2011 10:41:44 -0600 Subject: [PATCH] remove unused functions from verifier httputils --- verifier/lib/httputils.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/verifier/lib/httputils.js b/verifier/lib/httputils.js index aad0bd989..f062b02f9 100644 --- a/verifier/lib/httputils.js +++ b/verifier/lib/httputils.js @@ -63,18 +63,3 @@ exports.badRequest = function(resp, reason) resp.end(); }; -exports.jsonResponse = function(resp, obj) -{ - resp.writeHead(200, {"Content-Type": "application/json"}); - if (obj) resp.write(JSON.stringify(obj)); - resp.end(); -}; - -exports.checkGetArgs = function(req, args) { - [ "email", "pass", "pubkey" ].forEach(function(k) { - if (!urlobj.hasOwnProperty(k) || typeof urlobj[k] !== 'string') { - throw k; - } - }); - -}; -- GitLab