Skip to content

Commit

Permalink
Remove more unused methods reported by codecov.
Browse files Browse the repository at this point in the history
  • Loading branch information
simi committed Jan 11, 2025
1 parent 90e1ebb commit e8c5465
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
6 changes: 0 additions & 6 deletions app/helpers/owners_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,4 @@ def mfa_status(user)
image_tag("/images/check.svg")
end
end

def sanitize_note(text)
options = RDoc::Options.new
options.pipe = true
simple_format RDoc::Markup.new.convert(text, RDoc::Markup::ToHtml.new(options))
end
end
10 changes: 0 additions & 10 deletions app/policies/application_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ def deny(error = t(:forbidden))
false
end

def allow
@error = nil
true
end

def current_user?(record_user)
user && user == record_user
end
Expand All @@ -59,9 +54,4 @@ def organization_member_with_role?(user, minimum_role)

def policy!(user, record) = Pundit.policy!(user, record)
def user_policy!(record) = policy!(user, record)

def user_authorized?(record, action)
policy = user_policy!(record)
policy.send(action) || deny(policy.error)
end
end

0 comments on commit e8c5465

Please sign in to comment.