From ad2b6675041f9a68f730d1181f2b00569a435f56 Mon Sep 17 00:00:00 2001 From: Stephan Kaag Date: Mon, 22 Jul 2013 22:16:46 +0200 Subject: [PATCH] Remove dead code --- app/models/post.rb | 5 ----- lib/post_revisor.rb | 2 -- 2 files changed, 7 deletions(-) diff --git a/app/models/post.rb b/app/models/post.rb index e32b563e089..bc5bc5d9fdd 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -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 diff --git a/lib/post_revisor.rb b/lib/post_revisor.rb index aed1a9dda1d..9a4fac265a8 100644 --- a/lib/post_revisor.rb +++ b/lib/post_revisor.rb @@ -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