Remove unused Pet.from_viewer_data
constructor
I guess this was like, we had some call site that was handling loading the viewer data itself, and didn't want to have to reload it? But whatever, not used now, let's simplify! We can rebuild this easily if we need it again.
This commit is contained in:
parent
f0ac2adc78
commit
848e71f16d
1 changed files with 0 additions and 6 deletions
|
@ -121,12 +121,6 @@ class Pet < ApplicationRecord
|
|||
pet
|
||||
end
|
||||
|
||||
def self.from_viewer_data(viewer_data)
|
||||
pet = Pet.find_or_initialize_by(name: viewer_data[:custom_pet][:name])
|
||||
pet.use_viewer_data(viewer_data)
|
||||
pet
|
||||
end
|
||||
|
||||
# NOTE: Ideally pet requests shouldn't take this long, but Neopets can be
|
||||
# slow sometimes! Since we're on the Falcon server, long timeouts shouldn't
|
||||
# slow down the rest of the request queue, like it used to be in the past.
|
||||
|
|
Loading…
Reference in a new issue