diff --git a/ConversationsClassic/AppCore/Actions/SharingActions.swift b/ConversationsClassic/AppCore/Actions/SharingActions.swift index b174af2..f1db341 100644 --- a/ConversationsClassic/AppCore/Actions/SharingActions.swift +++ b/ConversationsClassic/AppCore/Actions/SharingActions.swift @@ -16,5 +16,4 @@ enum SharingAction: Stateable { case galleryItemsUpdated(items: [SharingGalleryItem]) case cameraCaptured(media: Data, type: SharingCameraMediaType) - // case flushCameraCaptured } diff --git a/ConversationsClassic/AppCore/Reducers/SharingReducer.swift b/ConversationsClassic/AppCore/Reducers/SharingReducer.swift index 4cfc2a2..3b66fc9 100644 --- a/ConversationsClassic/AppCore/Reducers/SharingReducer.swift +++ b/ConversationsClassic/AppCore/Reducers/SharingReducer.swift @@ -12,14 +12,6 @@ extension SharingState { case .setGalleryAccess(let granted): state.isGalleryAccessGranted = granted - // case .cameraCaptured(let media, let type): - // state.cameraCapturedMedia = media - // state.cameraCapturedMediaType = type - // - // case .flushCameraCaptured: - // state.cameraCapturedMedia = Data() - // state.cameraCapturedMediaType = .photo - case .galleryItemsUpdated(let items): state.galleryItems = items diff --git a/ConversationsClassic/AppCore/State/SharingState.swift b/ConversationsClassic/AppCore/State/SharingState.swift index 0357e15..d19c489 100644 --- a/ConversationsClassic/AppCore/State/SharingState.swift +++ b/ConversationsClassic/AppCore/State/SharingState.swift @@ -17,9 +17,6 @@ struct SharingState: Stateable { var isCameraAccessGranted: Bool var isGalleryAccessGranted: Bool - // var cameraCapturedMedia: Data - // var cameraCapturedMediaType: SharingCameraMediaType - var galleryItems: [SharingGalleryItem] } @@ -30,9 +27,6 @@ extension SharingState { isCameraAccessGranted = false isGalleryAccessGranted = false - // cameraCapturedMedia = Data() - // cameraCapturedMediaType = .photo - galleryItems = [] } }