Remove unused mobile mode code (#3206).

Mobile mode was removed in 31e36cf.
This commit is contained in:
evazion
2018-03-14 17:09:01 -05:00
parent 44c604521e
commit 8a012d4c91
4 changed files with 4 additions and 19 deletions

View File

@@ -11,7 +11,6 @@ class CurrentUser
ensure
self.user = old_user
self.ip_addr = old_ip_addr
self.mobile_mode = false
end
end
@@ -49,14 +48,6 @@ class CurrentUser
Thread.current[:current_ip_addr]
end
def self.mobile_mode=(mode)
Thread.current[:mobile_mode] = mode
end
def self.mobile_mode?
Thread.current[:mobile_mode]
end
def self.id
if user.nil?
nil