Skip to content

Commit 02f3839

Browse files
committed
refactor(crypto): Remove GroupSessionCache::get as it is unused
1 parent 4a93def commit 02f3839

File tree

1 file changed

+0
-10
lines changed
  • crates/matrix-sdk-crypto/src/session_manager/group_sessions

1 file changed

+0
-10
lines changed

crates/matrix-sdk-crypto/src/session_manager/group_sessions/mod.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,6 @@ impl GroupSessionCache {
117117
}
118118
}
119119

120-
/// Get an outbound group session for a room, if one exists.
121-
///
122-
/// # Arguments
123-
///
124-
/// * `room_id` - The id of the room for which we should get the outbound
125-
/// group session.
126-
fn get(&self, room_id: &RoomId) -> Option<OutboundGroupSession> {
127-
self.sessions.read().get(room_id).cloned()
128-
}
129-
130120
/// Returns whether any session is withheld with the given device and code.
131121
fn has_session_withheld_to(&self, device: &DeviceData, code: &WithheldCode) -> bool {
132122
self.sessions.read().values().any(|s| s.sharing_view().is_withheld_to(device, code))

0 commit comments

Comments
 (0)