remove unused code

v1.18.x
barisusakli 9 years ago
parent 452bb953c9
commit fa136ca021

@ -1,17 +1,14 @@
'use strict';
var async = require('async'),
winston = require('winston'),
meta = require('../meta'),
posts = require('../posts'),
topics = require('../topics'),
user = require('../user'),
helpers = require('./helpers'),
groups = require('../groups'),
categories = require('../categories'),
plugins = require('../plugins');
var async = require('async');
var meta = require('../meta');
var posts = require('../posts');
var topics = require('../topics');
var user = require('../user');
var helpers = require('./helpers');
var plugins = require('../plugins');
module.exports = function(privileges) {
@ -170,15 +167,6 @@ module.exports = function(privileges) {
], callback);
}
function isPostTopicLocked(pid, callback) {
posts.getPostField(pid, 'tid', function(err, tid) {
if (err) {
return callback(err);
}
topics.isLocked(tid, callback);
});
}
function isAdminOrMod(pid, uid, callback) {
helpers.some([
function(next) {

Loading…
Cancel
Save