mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-10 20:11:45 +02:00
remove unused functions added in this pull request
This commit is contained in:
15
src/posts.js
15
src/posts.js
@@ -260,19 +260,4 @@ var plugins = require('./plugins');
|
||||
});
|
||||
};
|
||||
|
||||
Posts.getReplyPids = function (pid, callback) {
|
||||
db.getSortedSetRange('pid:' + pid + ':replies', 0, -1, callback);
|
||||
};
|
||||
|
||||
Posts.getReplyPosts = function (pid, uid, callback) {
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
Posts.getReplyPids(pid, next);
|
||||
},
|
||||
function (pids, next) {
|
||||
Posts.getPostsByPids(pids, uid, next);
|
||||
}
|
||||
], callback);
|
||||
};
|
||||
|
||||
}(exports));
|
||||
|
||||
Reference in New Issue
Block a user