Skip to content

Commit

Permalink
Remove unused private API method
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Apr 12, 2020
1 parent 1857a3f commit 975a2c1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
11 changes: 0 additions & 11 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,6 @@ Naming/MethodParameterName:
- 'lib/aruba/platforms/unix_platform.rb'
- 'lib/aruba/tasks/docker_helpers.rb'

# Offense count: 1
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
# ForbiddenPrefixes: is_, has_, have_
# AllowedMethods: is_a?
# MethodDefinitionMacros: define_method, define_singleton_method
Naming/PredicateName:
Exclude:
- 'spec/**/*'
- 'lib/aruba/matchers/base/base_matcher.rb'

# Offense count: 1
Performance/Caller:
Exclude:
Expand Down
8 changes: 0 additions & 8 deletions lib/aruba/matchers/base/base_matcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,6 @@ def failure_message
def failure_message_when_negated
"expected #{description_of @actual} not to #{description}"
end

# @private
def self.has_default_failure_messages?(matcher)
matcher.method(:failure_message).owner == self &&
matcher.method(:failure_message_when_negated).owner == self
rescue NameError
false
end
end

include DefaultFailureMessages
Expand Down

0 comments on commit 975a2c1

Please sign in to comment.