remove references to ssd previews

This commit is contained in:
r888888888
2014-03-10 13:00:01 -07:00
parent cb27ea62f2
commit a5f268563d
4 changed files with 2 additions and 38 deletions

View File

@@ -155,10 +155,6 @@ class Upload < ActiveRecord::Base
end
Danbooru.resize(source_path, resized_file_path_for(width), width, height, quality)
if width == Danbooru.config.small_image_width && Danbooru.config.ssd_path
Danbooru.resize(source_path, ssd_file_path, width, height, quality)
end
end
end
@@ -228,11 +224,6 @@ class Upload < ActiveRecord::Base
"#{Rails.root}/public/data/#{prefix}#{md5}.#{file_ext}"
end
def ssd_file_path
prefix = Rails.env == "test" ? "test." : ""
"#{Danbooru.config.ssd_path}/public/data/preview/#{prefix}#{md5}.jpg"
end
def resized_file_path_for(width)
prefix = Rails.env == "test" ? "test." : ""