remove unused methods
Change-Id: I4605e263c1ed5369ac83fea3b8c6f784faf92b10 Reviewed-on: https://gerrit.instructure.com/6998 Tested-by: Hudson <hudson@instructure.com> Reviewed-by: JT Olds <jt@instructure.com>
This commit is contained in:
parent
5590e34474
commit
310ebfccd4
|
@ -333,15 +333,6 @@ class Account < ActiveRecord::Base
|
|||
['_account_lookup2', id].cache_key
|
||||
end
|
||||
|
||||
def find_user_by_unique_id(unique_id)
|
||||
self.pseudonyms.find_by_unique_id(unique_id_or_email).user rescue nil
|
||||
end
|
||||
|
||||
def clear_cache_keys!
|
||||
Rails.cache.delete(self.id)
|
||||
true
|
||||
end
|
||||
|
||||
def self.invalidate_cache(id)
|
||||
Rails.cache.delete(account_lookup_cache_key(id)) if id
|
||||
rescue
|
||||
|
|
Loading…
Reference in New Issue