Skip to content

Commit

Permalink
Cleanup no longer used code
Browse files Browse the repository at this point in the history
  • Loading branch information
picandocodigo committed Sep 7, 2019
1 parent 9574d1c commit 0a57398
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/thegamesdb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0a57398

Please sign in to comment.