Remove useless wrapper Services

This commit is contained in:
Lambda 2024-05-11 15:03:42 +00:00 committed by Charles Hall
parent 87a1012ab5
commit ad7a5ea777
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
20 changed files with 43 additions and 530 deletions

View file

@ -2,6 +2,7 @@ use crate::Result;
use ruma::{OwnedRoomId, RoomId};
pub(crate) trait Data: Send + Sync {
/// Checks if a room exists.
fn exists(&self, room_id: &RoomId) -> Result<bool>;
fn iter_ids<'a>(&'a self) -> Box<dyn Iterator<Item = Result<OwnedRoomId>> + 'a>;
fn is_disabled(&self, room_id: &RoomId) -> Result<bool>;