Remove unused code

This commit is contained in:
calzoneman 2015-12-12 16:28:24 -08:00
parent 27af66075e
commit 80c35b4190
2 changed files with 2 additions and 16 deletions

View File

@ -2,7 +2,7 @@
"author": "Calvin Montgomery",
"name": "CyTube",
"description": "Online media synchronizer and chat",
"version": "3.12.0",
"version": "3.12.1",
"repository": {
"url": "http://github.com/calzoneman/sync"
},

View File

@ -44,18 +44,6 @@ function redirectHttps(req, res) {
return false;
}
/**
* Redirects a request to HTTP if the server supports it
*/
function redirectHttp(req, res) {
if (req.secure) {
var domain = Config.get('http.full-address');
res.redirect(domain + req.path);
return true;
}
return false;
}
/**
* Legacy socket.io configuration endpoint. This is being migrated to
* /socketconfig/<channel name>.json (see ./routes/socketconfig.js)
@ -196,7 +184,5 @@ module.exports = {
initializeErrorHandlers(app);
},
redirectHttps: redirectHttps,
redirectHttp: redirectHttp
redirectHttps: redirectHttps
};