Skip to content

Commit 79082ea

Browse files
committed
Revert unwanted changes
1 parent c694e39 commit 79082ea

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

WordPress/Classes/Services/MediaCoordinator.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,10 @@ class MediaCoordinator: NSObject {
398398
// https://github.com/wordpress-mobile/WordPress-iOS/issues/20298#issuecomment-1465319707
399399
let service = self.mediaServiceFactory.create(coreDataStack.mainContext)
400400
var progress: Progress? = nil
401-
// service.uploadMedia(media, automatedRetry: automatedRetry, progress: &progress, success: success, failure: failure)
402-
// if let progress {
403-
// resultProgress.addChild(progress, withPendingUnitCount: resultProgress.totalUnitCount)
404-
// }
401+
service.uploadMedia(media, automatedRetry: automatedRetry, progress: &progress, success: success, failure: failure)
402+
if let progress {
403+
resultProgress.addChild(progress, withPendingUnitCount: resultProgress.totalUnitCount)
404+
}
405405

406406
uploading(media, progress: resultProgress)
407407

WordPress/Classes/Services/PostCoordinator.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ class PostCoordinator: NSObject {
8989
///
9090
/// - warning: Before publishing, ensure that the media for the post got
9191
/// uploaded. Managing media is not the responsibility of `PostRepository.`
92-
///
93-
/// - parameter changes: The set of changes apply to the post together
94-
/// with the publishing options.
9592
@MainActor
9693
func publish(_ post: AbstractPost, options: PublishingOptions) async throws {
9794
wpAssert(post.isOriginal())

WordPress/Classes/ViewRelated/Post/PostSettings/PostSettingsView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ private struct PostSettingsView: View {
9494
}
9595
.tint(AppColor.tint)
9696
.accessibilityIdentifier("post_settings_cancel_button")
97-
9897
}
9998

10099
@ViewBuilder

0 commit comments

Comments
 (0)