DEV: Remove unused code from TopicTrackingState.

`TopicTrackingState` contains only class methods so `attr_accessor` has
no meaning for the class. Probably stale code from a long time ago.
This commit is contained in:
Alan Guo Xiang Tan 2021-08-12 13:32:49 +08:00
parent b626373b31
commit 0198ffd2b1

View File

@ -31,15 +31,6 @@ class TopicTrackingState
DISMISS_NEW_MESSAGE_TYPE = "dismiss_new"
MAX_TOPICS = 5000
attr_accessor :user_id,
:topic_id,
:highest_post_number,
:last_read_post_number,
:created_at,
:category_id,
:notification_level,
:tags
def self.publish_new(topic)
return unless topic.regular?