mirror of https://github.com/calzoneman/sync.git
Remove unused code
This commit is contained in:
parent
27af66075e
commit
80c35b4190
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue