From 0198ffd2b1d9b5834bba369618400852c1ea28c7 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Thu, 12 Aug 2021 13:32:49 +0800 Subject: [PATCH] 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. --- app/models/topic_tracking_state.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/models/topic_tracking_state.rb b/app/models/topic_tracking_state.rb index 3e44f0cd593..608c8f35eee 100644 --- a/app/models/topic_tracking_state.rb +++ b/app/models/topic_tracking_state.rb @@ -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?