Skip to content

Commit

Permalink
Remove unnecessary string-checking methods
Browse files Browse the repository at this point in the history
  • Loading branch information
peteryates committed Apr 10, 2021
1 parent 80141f6 commit 24a1932
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/govuk_design_system_formbuilder/traits/html_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ def to_h

private

def has_class_string?(attributes)
attributes.key?(:class) && attributes[:class].is_a?(String)
end

def has_aria_describedby_string?(attributes)
attributes.dig(:aria, :describedby)&.is_a?(String)
end

def deep_split_values(hash)
hash.each.with_object({}) do |(key, value), result|
result[key] = case value
Expand Down

0 comments on commit 24a1932

Please sign in to comment.