Remove unused method.

This commit is contained in:
Paulo Reis 2017-05-05 15:17:19 +01:00
parent 9b8a2c3030
commit e96e6d6a29

View file

@ -95,16 +95,6 @@ module.exports = HttpController =
return next(error) if error?
logger.log project_id: project_id, "deleted project via http"
res.send 204 # No Content
acceptChange: (req, res, next = (error) ->) ->
{project_id, doc_id, change_id} = req.params
logger.log {project_id, doc_id, change_id}, "accepting change via http"
timer = new Metrics.Timer("http.acceptChange")
DocumentManager.acceptChangesWithLock project_id, doc_id, [ change_id ], (error) ->
timer.done()
return next(error) if error?
logger.log {project_id, doc_id, change_id}, "accepted change via http"
res.send 204 # No Content
acceptChanges: (req, res, next = (error) ->) ->
{project_id, doc_id} = req.params