A platform for community discussion. Free, open, simple.
DEV: Remove unused method.
Guo Xiang Tan6815f777f943
diff --git a/app/mailers/user_notifications.rb b/app/mailers/user_notifications.rbindex b52a191b158..c2f6dd4e7d6 100644--- a/app/mailers/user_notifications.rb+++ b/app/mailers/user_notifications.rb@@ -199,8 +199,8 @@ class UserNotifications < ActionMailer::Baseend# Try to find 3 interesting stats for the top of the digest+ new_topics_count = Topic.for_digest(user, min_date).count- new_topics_count = Topic.new_since_last_seen(user, min_date).countif new_topics_count == 0# We used topics from new users instead, so count should matchnew_topics_count = topics_for_digest.sizediff --git a/app/models/topic.rb b/app/models/topic.rbindex 931cd315887..5a41765962b 100644--- a/app/models/topic.rb+++ b/app/models/topic.rb@@ -423,12 +423,6 @@ class Topic < ActiveRecord::Basetopicsend- # Using the digest query, figure out what's new for a user since last seen- def self.new_since_last_seen(user, since, featured_topic_ids = nil)- topics = Topic.for_digest(user, since)- featured_topic_ids ? topics.where("topics.id NOT IN (?)", featured_topic_ids) : topics- end-def meta_data=(data)custom_fields.replace(data)end