Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: remove included cast method on ref
  • Loading branch information
geoffreygarrett committed Dec 22, 2024
commit 9e3bfe05ee00c3d0d8a01714f612f5e0e62748e9
5 changes: 0 additions & 5 deletions packages/leptos-node-ref/src/any_node_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ impl AnyNodeRef {
pub fn new() -> Self {
Self(RwSignal::new(None))
}

/// Attempts to cast the `AnyNodeRef` to a specific element type.
pub fn cast<E: JsCast + Clone>(&self) -> Option<E> {
self.0.get()?.dyn_ref::<E>().cloned()
}
}

impl Default for AnyNodeRef {
Expand Down