From 7db5e421e6a8c4ecba217c07f4422c8d339f84cd Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Fri, 20 Sep 2024 09:02:32 +0200 Subject: [PATCH] Cleanup polyfills code This code is not being required and references non-existing files Ref: ifad/hawk#5 --- .rubocop_todo.yml | 3 +-- lib/hawk/polyfills.rb | 17 ----------------- 2 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 lib/hawk/polyfills.rb diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 16ecf62..3fb6d69 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config --no-offense-counts --no-auto-gen-timestamp` -# using RuboCop version 1.64.1. +# using RuboCop version 1.66.1. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new @@ -144,7 +144,6 @@ Style/GuardClause: - 'lib/hawk/model/association.rb' - 'lib/hawk/model/lookup.rb' - 'lib/hawk/model/schema.rb' - - 'lib/hawk/polyfills.rb' - 'lib/hawk/rake/default_task.rb' # This cop supports safe autocorrection (--autocorrect). diff --git a/lib/hawk/polyfills.rb b/lib/hawk/polyfills.rb deleted file mode 100644 index 397c887..0000000 --- a/lib/hawk/polyfills.rb +++ /dev/null @@ -1,17 +0,0 @@ -# frozen_string_literal: true - -module Hawk - module Polyfills - def self.polyfill(klass, method, &impl) - unless klass.instance_methods.include?(method) - refine(klass) do - module_eval(&impl) - end - end - end - - require 'hawk/polyfills/string' - require 'hawk/polyfills/module' - require 'hawk/polyfills/hash' - end -end