mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 04:34:13 -06:00
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:
parent
b626373b31
commit
0198ffd2b1
@ -31,15 +31,6 @@ class TopicTrackingState
|
|||||||
DISMISS_NEW_MESSAGE_TYPE = "dismiss_new"
|
DISMISS_NEW_MESSAGE_TYPE = "dismiss_new"
|
||||||
MAX_TOPICS = 5000
|
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)
|
def self.publish_new(topic)
|
||||||
return unless topic.regular?
|
return unless topic.regular?
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user