From 0a57398f7a52069a2442b9f9601d5f45543b8432 Mon Sep 17 00:00:00 2001 From: Fernando Briano Date: Sat, 7 Sep 2019 20:21:08 +0100 Subject: [PATCH] Cleanup no longer used code --- lib/thegamesdb.rb | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lib/thegamesdb.rb b/lib/thegamesdb.rb index 4e9bbce..773a5c3 100644 --- a/lib/thegamesdb.rb +++ b/lib/thegamesdb.rb @@ -222,21 +222,6 @@ def self.process_game(game) game end - # Method for processing the fan art and screenshots into a uniform - # collection with url, width, height and thumb url - def self.images_from_nodes(data) - images = [] - data.each do |art| - images << { - url: art.original.nodes[0], - width: art.nodes.first.attributes[:width], - height: art.nodes.first.attributes[:height], - thumb: art.thumb.text - } - end - images - end - def self.symbolize_keys(hash) hash.keys.each do |key| hash[key.to_sym] = hash.delete(key)