Eliminate misc dead code.

This commit is contained in:
evazion
2020-06-23 23:37:56 -05:00
parent 5f3c41416e
commit bb765f55d5
3 changed files with 1 additions and 18 deletions

View File

@@ -24,15 +24,6 @@ class CurrentUser
scoped(user, &block)
end
def self.as_system(&block)
if block_given?
scoped(::User.system, "127.0.0.1", &block)
else
self.user = User.system
self.ip_addr = "127.0.0.1"
end
end
def self.user
RequestStore[:current_user]
end