removed unused getProject from projectHandler

This commit is contained in:
Henry Oswald 2014-04-07 11:59:31 +01:00
parent 4ff8b48d85
commit 976054377d
2 changed files with 0 additions and 8 deletions

View file

@ -18,10 +18,6 @@ async = require('async')
tagsHandler = require('../Features/Tags/TagsHandler')
module.exports = class ProjectHandler
getProject: (project_id, callback)->
logger.log project_id: project_id, "getting project"
Project.findById project_id, (err, project)->
callback err, ProjectEditorHandler.buildProjectModelView(project, includeUsers: false)
confirmFolder = (project_id, folder_id, callback)->
logger.log folder: folder_id, project_id: project_id, "confirming existence of folder"

View file

@ -298,10 +298,6 @@ module.exports = class Router
AuthorizationManager.ensureClientCanEditProject client, (error, project_id) =>
EditorController.renameProject(project_id, window_id, newName, callback)
client.on 'getProject',(callback)->
AuthorizationManager.ensureClientCanViewProject client, (error, project_id) =>
projectHandler.getProject(project_id, callback)
client.on 'setRootDoc', (newRootDocID, callback)->
AuthorizationManager.ensureClientCanEditProject client, (error, project_id) =>
EditorController.setRootDoc(project_id, newRootDocID, callback)