aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Problems.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-09 11:31:17 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-09 11:31:17 +0100
commit3307a7e64f7d105562a3f61af5ab935589824b9f (patch)
tree7435a4c0331dd2c24c2547a64faaabad7e7a0982 /perllib/Problems.pm
parent5d60e828ccd46a805e9463d14f388188efef9f4e (diff)
Transfer comment count function.
Diffstat (limited to 'perllib/Problems.pm')
-rw-r--r--perllib/Problems.pm17
1 files changed, 0 insertions, 17 deletions
diff --git a/perllib/Problems.pm b/perllib/Problems.pm
index 1f3eaf7b9..987820d0c 100644
--- a/perllib/Problems.pm
+++ b/perllib/Problems.pm
@@ -22,23 +22,6 @@ use mySociety::MaPit;
my $site_restriction = '';
my $site_key = 0;
-sub number_comments {
- my $key = "number_comments:$site_key";
- my $result = Memcached::get($key);
- unless ($result) {
- if ($site_restriction) {
- $result = dbh()->selectrow_array("select count(*) from comment, problem
- where comment.problem_id=problem.id and comment.state='confirmed'
- $site_restriction");
- } else {
- $result = dbh()->selectrow_array("select count(*) from comment
- where state='confirmed'");
- }
- Memcached::set($key, $result, 3600);
- }
- return $result;
-}
-
# Admin view functions
=item problem_search SEARCH