mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
remove confirmFolder from project handler, not used.
This commit is contained in:
parent
439d38441f
commit
f28bd33168
1 changed files with 0 additions and 11 deletions
|
@ -19,17 +19,6 @@ tagsHandler = require('../Features/Tags/TagsHandler')
|
|||
|
||||
module.exports = class ProjectHandler
|
||||
|
||||
confirmFolder = (project_id, folder_id, callback)->
|
||||
logger.log folder: folder_id, project_id: project_id, "confirming existence of folder"
|
||||
if folder_id+'' == 'undefined'
|
||||
Project.findById project_id, (err, project)->
|
||||
callback(project.rootFolder[0]._id)
|
||||
else if folder_id != null
|
||||
callback folder_id
|
||||
else
|
||||
Project.findById project_id, (err, project)->
|
||||
callback(project.rootFolder[0]._id)
|
||||
|
||||
renameEntity: (project_id, entity_id, entityType, newName, callback)->
|
||||
logger.log(entity_id: entity_id, project_id: project_id, ('renaming '+entityType))
|
||||
if !entityType?
|
||||
|
|
Loading…
Reference in a new issue