diff --git a/apps/skit/src/permissions.rs b/apps/skit/src/permissions.rs index 40dfef44..8d495ba0 100644 --- a/apps/skit/src/permissions.rs +++ b/apps/skit/src/permissions.rs @@ -436,12 +436,6 @@ impl PermissionsConfig { ) } - /// Get the default role permissions - #[allow(dead_code)] - pub fn get_default(&self) -> Permissions { - self.get_role(&self.default_role) - } - /// Check if we can accept a new session (global limit check) pub const fn can_accept_session(&self, current_count: usize) -> bool { match self.max_concurrent_sessions { @@ -449,15 +443,6 @@ impl PermissionsConfig { Some(max) => current_count < max, } } - - /// Check if we can accept a new oneshot pipeline (global limit check) - #[allow(dead_code)] - pub const fn can_accept_oneshot(&self, current_count: usize) -> bool { - match self.max_concurrent_oneshots { - None => true, - Some(max) => current_count < max, - } - } } #[cfg(test)] @@ -544,15 +529,6 @@ mod tests { assert!(!config.can_accept_session(11)); } - #[test] - fn test_global_oneshot_limits() { - let config = PermissionsConfig { max_concurrent_oneshots: Some(5), ..Default::default() }; - - assert!(config.can_accept_oneshot(0)); - assert!(config.can_accept_oneshot(4)); - assert!(!config.can_accept_oneshot(5)); - } - #[test] fn test_user_role_defaults() { let user = Permissions::user();