From dc3b1b8586f58788db7488c8231875cb95ce4c0a Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Sat, 29 Jun 2019 14:18:56 +0900 Subject: [PATCH] Remove unnecessary code to suppress warnings Rails cops has been removed from RuboCop 0.72. https://github.com/rubocop-hq/rubocop/releases/tag/v0.72.0 As a result of verification, the code to guard a warning is not necessary already. Related PR ... https://github.com/rubocop-hq/rubocop-rails/pull/83 --- lib/rubocop/cop/performance_cops.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/rubocop/cop/performance_cops.rb b/lib/rubocop/cop/performance_cops.rb index e966c56834..0d0a13d621 100644 --- a/lib/rubocop/cop/performance_cops.rb +++ b/lib/rubocop/cop/performance_cops.rb @@ -1,13 +1,5 @@ # frozen_string_literal: true -module RuboCop - # RuboCop included the performance cops directly before version 1.0.0. - # We can remove them to avoid warnings about redefining constants. - module Cop - remove_const('Performance') if const_defined?('Performance') - end -end - require_relative 'performance/caller' require_relative 'performance/case_when_splat' require_relative 'performance/casecmp'