Skip to content

Commit c5653d2

Browse files
committed
Remove no-longer-necessary code
1 parent a42ea77 commit c5653d2

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

lib/inertia_rails/renderer.rb

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -117,22 +117,6 @@ def deep_transform_props(props, parent_path = '', &block)
117117
end
118118
end
119119

120-
def deep_transform_values(hash, &block)
121-
return block.call(hash) unless hash.is_a? Hash
122-
123-
hash.transform_values {|value| deep_transform_values(value, &block)}
124-
end
125-
126-
def drop_partial_except_keys(hash)
127-
partial_except_keys.each do |key|
128-
parts = key.to_s.split('.').map(&:to_sym)
129-
*initial_keys, last_key = parts
130-
current = initial_keys.any? ? hash.dig(*initial_keys) : hash
131-
132-
current.delete(last_key) if current.is_a?(Hash) && !current[last_key].is_a?(AlwaysProp)
133-
end
134-
end
135-
136120
def partial_keys
137121
(@request.headers['X-Inertia-Partial-Data'] || '').split(',').compact.map(&:to_sym)
138122
end

0 commit comments

Comments
 (0)