device-key: clean up unused crate (#21487)

This commit is contained in:
Ruslan Nigmatullin authored and GitHub committed 2026-05-07 09:01:44 -07:00
1 parent acac786d91
commit e64a8979b0
50 files changed
+37 -4447

No files matched your search

@@ -171,14 +171,6 @@ pub enum ConnectionOrigin {
RemoteControl,
}
impl ConnectionOrigin {
pub fn allows_device_key_requests(self) -> bool {
// Device-key endpoints are only for local connections that own the app-server instance.
// Do not include remote transports such as SSH or remote-control websocket connections.
matches!(self, Self::Stdio | Self::InProcess)
}
}
static CONNECTION_ID_COUNTER: AtomicU64 = AtomicU64::new(0);
fn next_connection_id() -> ConnectionId {