From f8cf8165dfd1c1be52a34570cba8cf2a07038afd Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Sat, 24 Feb 2024 15:10:30 -0800 Subject: [PATCH] Remove unused `SwfAsset#images` method I think this used to be used in an API endpoint we've now deleted? I'm just cleaning up call sites because I intend to refactor the `urls` method and stuff, so I'm removing cruft that would complicate it! I'm not certain-certain this is unused, but I did a global search for `\bimages\b` in the codebase, and didn't find anything that looked like a match to me! --- app/models/swf_asset.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/models/swf_asset.rb b/app/models/swf_asset.rb index 1ead13ba..0698ee36 100644 --- a/app/models/swf_asset.rb +++ b/app/models/swf_asset.rb @@ -51,10 +51,6 @@ class SwfAsset < ApplicationRecord "https://impress-asset-images.openneo.net/#{image_dir}/#{size_key}.png?" + "#{image_version}" end - - def images - IMAGE_SIZES.values.map { |size| {:size => size, :url => image_url(size)} } - end attr_accessor :item