mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
remove deprecated methods
This commit is contained in:
@@ -209,11 +209,6 @@ module.exports = function (Categories) {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
Categories.getTopicIndex = function (tid, callback) {
|
|
||||||
console.warn('[Categories.getTopicIndex] deprecated');
|
|
||||||
callback(null, 1);
|
|
||||||
};
|
|
||||||
|
|
||||||
Categories.onNewPostMade = function (cid, pinned, postData, callback) {
|
Categories.onNewPostMade = function (cid, pinned, postData, callback) {
|
||||||
if (!cid || !postData) {
|
if (!cid || !postData) {
|
||||||
return setImmediate(callback);
|
return setImmediate(callback);
|
||||||
|
|||||||
@@ -57,11 +57,6 @@ Topics.getPageCount = function (tid, uid, callback) {
|
|||||||
], callback);
|
], callback);
|
||||||
};
|
};
|
||||||
|
|
||||||
Topics.getTidPage = function (tid, uid, callback) {
|
|
||||||
console.warn('[Topics.getTidPage] deprecated!');
|
|
||||||
callback(null, 1);
|
|
||||||
};
|
|
||||||
|
|
||||||
Topics.getTopicsFromSet = function (set, uid, start, stop, callback) {
|
Topics.getTopicsFromSet = function (set, uid, start, stop, callback) {
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
function (next) {
|
function (next) {
|
||||||
|
|||||||
Reference in New Issue
Block a user