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", "author": "Calvin Montgomery",
"name": "CyTube", "name": "CyTube",
"description": "Online media synchronizer and chat", "description": "Online media synchronizer and chat",
"version": "3.12.0", "version": "3.12.1",
"repository": { "repository": {
"url": "http://github.com/calzoneman/sync" "url": "http://github.com/calzoneman/sync"
}, },

View File

@ -44,18 +44,6 @@ function redirectHttps(req, res) {
return false; 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 * Legacy socket.io configuration endpoint. This is being migrated to
* /socketconfig/<channel name>.json (see ./routes/socketconfig.js) * /socketconfig/<channel name>.json (see ./routes/socketconfig.js)
@ -196,7 +184,5 @@ module.exports = {
initializeErrorHandlers(app); initializeErrorHandlers(app);
}, },
redirectHttps: redirectHttps, redirectHttps: redirectHttps
redirectHttp: redirectHttp
}; };