Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
julik committed Jan 3, 2024
1 parent b094280 commit 00c621b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
12 changes: 0 additions & 12 deletions lib/pecorino/postgres.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,5 @@ def set_block(conn:, key:, block_for:)
conn.uncached { conn.select_value(block_set_query) }
end

private

def sanitize_sql_array_via_connection(connection, ...)
# TODO: terrible hack
sanitizer = begin
struct_class = Struct.new(:connection)
struct_class.send(:include, ActiveRecord::Sanitization::ClassMethods)
struct_class.new(connection)
end
sanitizer.sanitize_sql_array(...)
end

extend self
end
12 changes: 0 additions & 12 deletions lib/pecorino/sqlite.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,5 @@ def set_block(conn:, key:, block_for:)
conn.uncached { conn.select_value(block_set_query) }
end

private

def sanitize_sql_array_via_connection(connection, ...)
# TODO: terrible hack
sanitizer = begin
struct_class = Struct.new(:connection)
struct_class.send(:include, ActiveRecord::Sanitization::ClassMethods)
struct_class.new(connection)
end
sanitizer.sanitize_sql_array(...)
end

extend self
end

0 comments on commit 00c621b

Please sign in to comment.