Skip to content

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.rb
index b52a191b158..c2f6dd4e7d6 100644
--- a/app/mailers/user_notifications.rb
+++ b/app/mailers/user_notifications.rb
@@ -199,8 +199,8 @@ class UserNotifications < ActionMailer::Base
end
# 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).count
if new_topics_count == 0
# We used topics from new users instead, so count should match
new_topics_count = topics_for_digest.size
diff --git a/app/models/topic.rb b/app/models/topic.rb
index 931cd315887..5a41765962b 100644
--- a/app/models/topic.rb
+++ b/app/models/topic.rb
@@ -423,12 +423,6 @@ class Topic < ActiveRecord::Base
topics
end
- # 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