Remove unused mouse control and macax accessibility code

Removed dead code that was never used by any g3 tool:

- macax/ module (accessibility control via AXApplication, AXElement)
- move_mouse() and click_at() methods from ComputerController trait
- macax_demo.rs and test_type_text.rs examples

The ComputerController trait now only has take_screenshot(),
which is the only method actually used by the screenshot tool.
This commit is contained in:
Dhanji R. Prasanna
2026-01-21 06:54:31 +05:30
parent a89cad955a
commit 9397687949
9 changed files with 1 additions and 1148 deletions

View File

@@ -1,7 +1,6 @@
// Suppress warnings from objc crate macros
#![allow(unexpected_cfgs)]
pub mod macax;
pub mod platform;
pub mod types;
pub mod webdriver;
@@ -12,9 +11,6 @@ pub use webdriver::{
diagnostics::{run_diagnostics as run_chrome_diagnostics, ChromeDiagnosticReport, DiagnosticStatus},
};
// Re-export macax types for convenience
pub use macax::{AXApplication, AXElement, MacAxController};
use anyhow::Result;
use async_trait::async_trait;
use types::*;
@@ -28,10 +24,6 @@ pub trait ComputerController: Send + Sync {
region: Option<Rect>,
window_id: Option<&str>,
) -> Result<()>;
// Mouse operations
fn move_mouse(&self, x: i32, y: i32) -> Result<()>;
fn click_at(&self, x: i32, y: i32, app_name: Option<&str>) -> Result<()>;
}
// Platform-specific constructor