From af35c82d96bbd09acac061cf4bf051500766ed14 Mon Sep 17 00:00:00 2001 From: evazion Date: Sun, 9 Jul 2017 13:49:20 -0500 Subject: [PATCH] Remove unused Artist#legacy_api_hash method (#3206). Added in 0e0d83c7 but never used. app/views/legacy/artists.{json,xml}.erb is what *would* use this, but neither does. --- app/models/artist.rb | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/models/artist.rb b/app/models/artist.rb index de62be6f0..d0e763909 100644 --- a/app/models/artist.rb +++ b/app/models/artist.rb @@ -540,18 +540,6 @@ class Artist < ApplicationRecord def hidden_attributes super + [:other_names_index] end - - def legacy_api_hash - return { - :id => id, - :name => name, - :other_names => other_names, - :group_name => group_name, - :urls => artist_urls.map {|x| x.url}, - :is_active => is_active?, - :updater_id => 0 - } - end end include UrlMethods