From 6cdf5615fc0c36df96b2df47eff7777be5eaa037 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Tue, 31 Mar 2015 10:24:09 +0100 Subject: [PATCH] remove old unused functions --- .../app/coffee/RedisManager.coffee | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/services/document-updater/app/coffee/RedisManager.coffee b/services/document-updater/app/coffee/RedisManager.coffee index b08687a170..d280de1cea 100644 --- a/services/document-updater/app/coffee/RedisManager.coffee +++ b/services/document-updater/app/coffee/RedisManager.coffee @@ -176,25 +176,3 @@ module.exports = RedisManager = getDocIdsInProject: (project_id, callback = (error, doc_ids) ->) -> rclient.smembers keys.docsInProject(project_id: project_id), callback - - -getDocumentsProjectId = (doc_id, callback)-> - rclient.get keys.projectKey({doc_id:doc_id}), (err, project_id)-> - callback err, {doc_id:doc_id, project_id:project_id} - -getAllProjectDocsIds = (project_id, callback)-> - rclient.SMEMBERS keys.docsInProject(project_id:project_id), (err, doc_ids)-> - if callback? - callback(err, doc_ids) - -getDocumentsAndExpire = (doc_ids, callback)-> - multi = rclient.multi() - oneDay = 86400 - doc_ids.forEach (doc_id)-> - # rclient.expire keys.docLines(doc_id:doc_id), oneDay, -> - doc_ids.forEach (doc_id)-> - multi.get keys.docLines(doc_id:doc_id) - multi.exec (err, docsLines)-> - callback err, docsLines - -