diff --git a/crates/thing-core/src/frame.rs b/crates/thing-core/src/frame.rs index 31f5ef8..45bf4fd 100644 --- a/crates/thing-core/src/frame.rs +++ b/crates/thing-core/src/frame.rs @@ -8,7 +8,7 @@ use thing_contract::{CommandInvocation, DatabaseEntry, ProviderId, RecordKey, Sc use std::collections::HashSet; use crate::bind::Binder; -use crate::command::{Activation, Commands, Confirming, HostEffect, NodeStates, Resume}; +use crate::command::{Activation, Commands, Confirming, HostEffect, Resume}; use crate::diagnostic::{Code, Diagnostic}; use crate::input::{Drafts, InputEvent}; use crate::layout::{LaidTree, LayoutError, LayoutFrame, Measure, Metrics, layout}; @@ -204,8 +204,9 @@ impl Core { /// Run the command an `OpenExternal` effect named, once the external step has returned. The host /// holds the `Resume` across the navigation and hands it back here; the command is minted, or asks - /// for confirmation, like an activation. A resume handed over before its surface has bound is held and runs at the first bind; one whose - /// surface is left first is dropped and said. Any other refusal is said in the next frame's `diagnostics`. + /// for confirmation, like an activation. A resume handed over before its surface has bound is held and + /// runs at the first bind; one whose surface is left first is dropped and said. Any other refusal is + /// said in the next frame's `diagnostics`. pub fn resume(&mut self, resume: &Resume, now: Timestamp, ports: Ports<'_>) { let Some(tree) = self.binder.tree(&resume.surface_key) else { self.held.push(resume.clone()); @@ -215,11 +216,6 @@ impl Core { self.notes.extend(said); } - /// The busy, pending and fault state of the shown surface's nodes, for render and accessibility. - pub fn node_states(&self) -> NodeStates { - self.shown.as_ref().map(|shown| self.commands.view(shown.key.as_str())).unwrap_or_default() - } - /// Drop the drafts of nodes the shown surface no longer has. fn retain_drafts(&mut self) { let Some(shown) = &self.shown else { return };