Skip to content

Commit

Permalink
Remove useless cast
Browse files Browse the repository at this point in the history
Reduces the number of warnings when doing a gradle build.
  • Loading branch information
veyndan committed Sep 18, 2023
1 parent 8b9c315 commit 8530cb3
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import app.cash.redwood.protocol.EventSink
import app.cash.redwood.protocol.SnapshotChangeList
import app.cash.redwood.protocol.widget.ProtocolBridge
import app.cash.redwood.protocol.widget.ProtocolMismatchHandler
import app.cash.redwood.protocol.widget.ProtocolNode
import kotlinx.serialization.json.Json

/**
Expand All @@ -35,7 +34,6 @@ public class ChangeListRenderer<W : Any>(
throw IllegalStateException("unexpected event: $event")
}

@Suppress("UNCHECKED_CAST")
public fun render(
view: TreehouseView<W>,
changeList: SnapshotChangeList,
Expand All @@ -46,7 +44,7 @@ public class ChangeListRenderer<W : Any>(
factory = view.widgetSystem.widgetFactory(
json,
ProtocolMismatchHandler.Throwing,
) as ProtocolNode.Factory<W>,
),
eventSink = refuseAllEvents,
)
bridge.sendChanges(changeList.changes)
Expand Down

0 comments on commit 8530cb3

Please sign in to comment.