From 975a2c19d04bc519c53b81742715ae27031988b8 Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Sat, 11 Apr 2020 14:55:10 +0200 Subject: [PATCH] Remove unused private API method --- .rubocop_todo.yml | 11 ----------- lib/aruba/matchers/base/base_matcher.rb | 8 -------- 2 files changed, 19 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index cc22fa9e1..2dba218a8 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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: diff --git a/lib/aruba/matchers/base/base_matcher.rb b/lib/aruba/matchers/base/base_matcher.rb index ed37ac786..a82948910 100644 --- a/lib/aruba/matchers/base/base_matcher.rb +++ b/lib/aruba/matchers/base/base_matcher.rb @@ -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