Skip to content

Commit 59c2980

Browse files
committed
refactor: Remove some useless cfg guards
The whole module is behind a e2e-encryption feature guard, so those individual ones in the module are not useful.
1 parent 0a822c1 commit 59c2980

File tree

1 file changed

+0
-7
lines changed
  • crates/matrix-sdk/src/encryption

1 file changed

+0
-7
lines changed

crates/matrix-sdk/src/encryption/tasks.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,31 +38,25 @@ type DownloadCache = FailuresCache<RoomKeyInfo>;
3838

3939
#[derive(Default)]
4040
pub(crate) struct ClientTasks {
41-
#[cfg(feature = "e2e-encryption")]
4241
pub(crate) upload_room_keys: Option<BackupUploadingTask>,
43-
#[cfg(feature = "e2e-encryption")]
4442
pub(crate) download_room_keys: Option<BackupDownloadTask>,
45-
#[cfg(feature = "e2e-encryption")]
4643
pub(crate) update_recovery_state_after_backup: Option<JoinHandle<()>>,
4744
pub(crate) setup_e2ee: Option<JoinHandle<()>>,
4845
}
4946

50-
#[cfg(feature = "e2e-encryption")]
5147
pub(crate) struct BackupUploadingTask {
5248
sender: mpsc::UnboundedSender<()>,
5349
#[allow(dead_code)]
5450
join_handle: JoinHandle<()>,
5551
}
5652

57-
#[cfg(feature = "e2e-encryption")]
5853
impl Drop for BackupUploadingTask {
5954
fn drop(&mut self) {
6055
#[cfg(not(target_family = "wasm"))]
6156
self.join_handle.abort();
6257
}
6358
}
6459

65-
#[cfg(feature = "e2e-encryption")]
6660
impl BackupUploadingTask {
6761
pub(crate) fn new(client: WeakClient) -> Self {
6862
let (sender, receiver) = mpsc::unbounded_channel();
@@ -131,7 +125,6 @@ pub(crate) struct BackupDownloadTask {
131125
join_handle: JoinHandle<()>,
132126
}
133127

134-
#[cfg(feature = "e2e-encryption")]
135128
impl Drop for BackupDownloadTask {
136129
fn drop(&mut self) {
137130
#[cfg(not(target_family = "wasm"))]

0 commit comments

Comments
 (0)