summaryrefslogtreecommitdiff
path: root/includes/comment.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/comment.inc')
-rw-r--r--includes/comment.inc10
1 files changed, 0 insertions, 10 deletions
diff --git a/includes/comment.inc b/includes/comment.inc
index 580dcdc98..51aad93f1 100644
--- a/includes/comment.inc
+++ b/includes/comment.inc
@@ -155,16 +155,6 @@ function comment_num_replies($id, $count = 0) {
return ($result) ? db_result($result, 0) : 0;
}
-function comment_num_filtered($lid, $pid) {
- global $user;
-
- $threshold = ($user->id) ? $user->threshold : "0";
- $pid = ($pid) ? $pid : 0;
-
- $result = db_query("SELECT COUNT(cid) FROM comments WHERE lid = '$lid' AND pid = '$pid' AND ((votes = 0 AND score < $threshold) OR (score / votes < $threshold))");
- return ($result) ? db_result($result, 0) : 0;
-}
-
function comment_moderation($comment) {
global $comment_votes, $op, $user;