From 2b90568157dc97ed87a46ff5209c8128e0983137 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 11 May 2015 15:31:31 -0400 Subject: [PATCH] removed getLatestTids, renamed getPostsByTid removed unused tid param --- src/posts/topics.js | 2 +- src/topics/recent.js | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/posts/topics.js b/src/posts/topics.js index 4e9f1f7213..29b32edf25 100644 --- a/src/posts/topics.js +++ b/src/posts/topics.js @@ -6,7 +6,7 @@ var async = require('async'), module.exports = function(Posts) { - Posts.getPostsByTid = function(tid, set, start, stop, uid, reverse, callback) { + Posts.getPostsFromSet = function(set, start, stop, uid, reverse, callback) { Posts.getPidsFromSet(set, start, stop, reverse, function(err, pids) { if (err) { return callback(err); diff --git a/src/topics/recent.js b/src/topics/recent.js index fa3251806d..b7bee96e36 100644 --- a/src/topics/recent.js +++ b/src/topics/recent.js @@ -28,11 +28,6 @@ module.exports = function(Topics) { ], callback); }; - Topics.getLatestTids = function(start, stop, term, callback) { - winston.warn('[deprecation warning] please use Topics.getLatestTidsFromSet("topics:recent")'); - Topics.getLatestTidsFromSet('topics:recent', start, stop, term, callback); - }; - Topics.getLatestTidsFromSet = function(set, start, stop, term, callback) { var since = terms.day; if (terms[term]) {