mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
remove unused inline function
This commit is contained in:
parent
a4117487e9
commit
a955b8fcc9
1 changed files with 1 additions and 8 deletions
|
@ -21,13 +21,6 @@ CooldownManager = require '../Cooldown/CooldownManager'
|
||||||
module.exports = ProjectEntityHandler =
|
module.exports = ProjectEntityHandler =
|
||||||
getAllFolders: (project_id, callback) ->
|
getAllFolders: (project_id, callback) ->
|
||||||
logger.log project_id:project_id, "getting all folders for project"
|
logger.log project_id:project_id, "getting all folders for project"
|
||||||
folders = {}
|
|
||||||
processFolder = (basePath, folder) ->
|
|
||||||
folders[basePath] = folder
|
|
||||||
for childFolder in (folder.folders or [])
|
|
||||||
if childFolder.name?
|
|
||||||
processFolder path.join(basePath, childFolder.name), childFolder
|
|
||||||
|
|
||||||
ProjectGetter.getProjectWithoutDocLines project_id, (err, project) ->
|
ProjectGetter.getProjectWithoutDocLines project_id, (err, project) ->
|
||||||
return callback(err) if err?
|
return callback(err) if err?
|
||||||
return callback("no project") if !project?
|
return callback("no project") if !project?
|
||||||
|
|
Loading…
Reference in a new issue