Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

chore: remove unused legacy macOS permission types (#13677)

Celia Chenfb9fcf060f15
diff --git a/codex-rs/protocol/src/models.rs b/codex-rs/protocol/src/models.rs
index 8a3ac07048..0e5bc7e6d0 100644
--- a/codex-rs/protocol/src/models.rs
+++ b/codex-rs/protocol/src/models.rs
@@ -67,23 +67,6 @@ impl FileSystemPermissions {
}
}
-#[derive(Debug, Clone, Default, Eq, Hash, PartialEq, Serialize, Deserialize, JsonSchema, TS)]
-pub struct MacOsPermissions {
- pub preferences: Option<MacOsPreferencesValue>,
- pub automations: Option<MacOsAutomationValue>,
- pub accessibility: Option<bool>,
- pub calendar: Option<bool>,
-}
-
-impl MacOsPermissions {
- pub fn is_empty(&self) -> bool {
- self.preferences.is_none()
- && self.automations.is_none()
- && self.accessibility.is_none()
- && self.calendar.is_none()
- }
-}
-
#[derive(Debug, Clone, Default, Eq, Hash, PartialEq, Serialize, Deserialize, JsonSchema, TS)]
pub struct NetworkPermissions {
pub enabled: Option<bool>,
@@ -95,20 +78,6 @@ impl NetworkPermissions {
}
}
-#[derive(Debug, Clone, Eq, Hash, PartialEq, Serialize, Deserialize, JsonSchema, TS)]
-#[serde(untagged)]
-pub enum MacOsPreferencesValue {
- Bool(bool),
- Mode(String),
-}
-
-#[derive(Debug, Clone, Eq, Hash, PartialEq, Serialize, Deserialize, JsonSchema, TS)]
-#[serde(untagged)]
-pub enum MacOsAutomationValue {
- Bool(bool),
- BundleIds(Vec<String>),
-}
-
#[derive(
Debug,
Clone,