mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 18:12: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+/, ""))
|
Digest::SHA1.hexdigest(raw.gsub(/\s+/, ""))
|
||||||
end
|
end
|
||||||
|
|
||||||
def reset_cooked
|
|
||||||
@cooked_document = nil
|
|
||||||
self.cooked = nil
|
|
||||||
end
|
|
||||||
|
|
||||||
def self.white_listed_image_classes
|
def self.white_listed_image_classes
|
||||||
@white_listed_image_classes ||= ['avatar', 'favicon', 'thumbnail']
|
@white_listed_image_classes ||= ['avatar', 'favicon', 'thumbnail']
|
||||||
end
|
end
|
||||||
|
|
|
@ -66,8 +66,6 @@ class PostRevisor
|
||||||
end
|
end
|
||||||
|
|
||||||
def update_post
|
def update_post
|
||||||
@post.reset_cooked
|
|
||||||
|
|
||||||
@post.raw = @new_raw
|
@post.raw = @new_raw
|
||||||
@post.updated_by = @user
|
@post.updated_by = @user
|
||||||
@post.last_editor_id = @user.id
|
@post.last_editor_id = @user.id
|
||||||
|
|
Loading…
Reference in New Issue
Block a user