From b0e7ebf2c7e2925c4d5fee4bf7d527c53ff4c1e3 Mon Sep 17 00:00:00 2001
From: Omar Luq <84993125+omarluq@users.noreply.github.com>
Date: Sun, 4 Aug 2024 02:53:07 -0500
Subject: [PATCH] remove unused morph tag builder (#655)
---
app/models/turbo/streams/tag_builder.rb | 26 -------------------------
1 file changed, 26 deletions(-)
diff --git a/app/models/turbo/streams/tag_builder.rb b/app/models/turbo/streams/tag_builder.rb
index 294c4e76..99a2aa47 100644
--- a/app/models/turbo/streams/tag_builder.rb
+++ b/app/models/turbo/streams/tag_builder.rb
@@ -228,32 +228,6 @@ def prepend_all(targets, content = nil, **rendering, &block)
action_all :prepend, targets, content, **rendering, &block
end
- # Morph the target in the dom with either the content passed in or a rendering result determined
- # by the rendering keyword arguments, the content in the block, or the rendering of the target as a record. Examples:
- #
- # <%= turbo_stream.morph "clearance_5", "
Morph the dom target identified by clearance_5
" %>
- # <%= turbo_stream.morph clearance %>
- # <%= turbo_stream.morph clearance, partial: "clearances/clearance", locals: { title: "Hello" } %>
- # <%= turbo_stream.morph "clearance_5" do %>
- # Morph the dom target identified by clearance_5
- # <% end %>
- def morph(target, content = nil, **rendering, &block)
- action :morph, target, content, **rendering, &block
- end
-
- # Morph the targets in the dom with either the content passed in or a rendering result determined
- # by the rendering keyword arguments, the content in the block, or the rendering of the targets as a record. Examples:
- #
- # <%= turbo_stream.morph_all ".clearance_item", "Morph the dom target identified by the class clearance_item
" %>
- # <%= turbo_stream.morph_all clearance %>
- # <%= turbo_stream.morph_all clearance, partial: "clearances/clearance", locals: { title: "Hello" } %>
- # <%= turbo_stream.morph_all ".clearance_item" do %>
- # Morph the dom target identified by the class clearance_item
- # <% end %>
- def morph_all(targets, content = nil, **rendering, &block)
- action_all :morph, targets, content, **rendering, &block
- end
-
# Send an action of the type name to target. Options described in the concrete methods.
def action(name, target, content = nil, allow_inferred_rendering: true, **rendering, &block)
template = render_template(target, content, allow_inferred_rendering: allow_inferred_rendering, **rendering, &block)