mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 18:02:46 +08:00
Remove dead code
This commit is contained in:
parent
112b9f9c2a
commit
ad2b667504
|
@ -78,11 +78,6 @@ class Post < ActiveRecord::Base
|
|||
Digest::SHA1.hexdigest(raw.gsub(/\s+/, ""))
|
||||
end
|
||||
|
||||
def reset_cooked
|
||||
@cooked_document = nil
|
||||
self.cooked = nil
|
||||
end
|
||||
|
||||
def self.white_listed_image_classes
|
||||
@white_listed_image_classes ||= ['avatar', 'favicon', 'thumbnail']
|
||||
end
|
||||
|
|
|
@ -66,8 +66,6 @@ class PostRevisor
|
|||
end
|
||||
|
||||
def update_post
|
||||
@post.reset_cooked
|
||||
|
||||
@post.raw = @new_raw
|
||||
@post.updated_by = @user
|
||||
@post.last_editor_id = @user.id
|
||||
|
|
Loading…
Reference in New Issue
Block a user