Skip to content

Commit 8118f5d

Browse files
style: Remove useless variables
1 parent 3d6aa23 commit 8118f5d

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

Mail/Views/Thread List/DestructiveActionAlertView.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ struct DestructiveActionAlertView: View {
7676

7777
let destructiveAlert: DestructiveActionAlertState
7878

79-
init(destructiveAlert: DestructiveActionAlertState) {
80-
self.destructiveAlert = destructiveAlert
81-
}
82-
8379
var body: some View {
8480
VStack(alignment: .leading, spacing: IKPadding.large) {
8581
Text(destructiveAlert.title)

Mail/Views/Thread List/ThreadListSwipeAction.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ private struct SwipeActionView: View {
4040
let action: Action
4141

4242
private var isDestructive: Bool {
43-
let shouldWarnBeforeDeletion = thread.folder?.shouldWarnBeforeDeletion ?? false
4443
guard networkMonitor.isConnected else { return false }
4544
return action.isDestructive(for: thread)
4645
}

0 commit comments

Comments
 (0)