Skip to content

Use Claude Code, Codex, VSCode, Pi, and OpenCode (and 6 other harnesses) for free (1.3B+ free tokens) from your terminal, app, IDE, or phone, and now from the browser with native browser sessions (multi-harness + multi-model) like OpenClaw (voice supported + ToS friendly)

Python

Remove dead code: MessageTree.get_queue_position

Cursor Agentc4b52cb4ceac
diff --git a/messaging/tree_data.py b/messaging/tree_data.py
index 50f437e6..0fb546d7 100644
--- a/messaging/tree_data.py
+++ b/messaging/tree_data.py
@@ -265,16 +265,6 @@ class MessageTree:
"""Get number of messages waiting in queue."""
return self._queue.qsize()
- def get_queue_position(self, node_id: str) -> int:
- """
- Get position of a node in the queue.
-
- Returns 0 if not in queue, 1+ for queue position.
- """
- # Note: asyncio.Queue doesn't support direct iteration
- # This is an approximation based on order
- return 0 # TODO: Track positions separately if needed
-
def to_dict(self) -> dict:
"""Serialize tree to dictionary."""
return {