Remove debug lines
This commit is contained in:
@ -3,22 +3,6 @@ import Foundation
|
||||
import Models
|
||||
import SwiftGraphQL
|
||||
|
||||
public extension DataService {
|
||||
// func uploadPDFPublisher(
|
||||
// pageScrapePayload: PageScrapePayload,
|
||||
// data: Data,
|
||||
// requestId: String
|
||||
// ) -> AnyPublisher<Void, SaveArticleError> {
|
||||
// // uploadFileRequestPublisher(pageScrapePayload: pageScrapePayload, requestId: requestId)
|
||||
// // .flatMap { self.uploadFilePublisher(fileUploadConfig: $0, data: data) }
|
||||
// uploadFilePublisher(pageScrapePayload: pageScrapePayload, requestId: requestId, data: data)
|
||||
// .flatMap { self.saveFilePublisher(pageScrapePayload: pageScrapePayload, uploadFileId: $0, requestId: requestId) }
|
||||
// .catch { _ in self.saveUrlPublisher(pageScrapePayload: pageScrapePayload, requestId: requestId) }
|
||||
// .receive(on: DispatchQueue.main)
|
||||
// .eraseToAnyPublisher()
|
||||
// }
|
||||
}
|
||||
|
||||
private struct UploadFileRequestPayload {
|
||||
let uploadID: String?
|
||||
let uploadFileID: String?
|
||||
|
||||
@ -75,6 +75,9 @@ extension DataService {
|
||||
|
||||
switch syncStatus {
|
||||
case .needsCreation:
|
||||
// TODO: We will want to sync items that need creation in the background
|
||||
// these items are forced to sync when saved, but should be re-tried in
|
||||
// the background.
|
||||
// syncLocalCreatedLinkedItem(item: item)
|
||||
break
|
||||
case .isNSync, .isSyncing:
|
||||
|
||||
@ -180,30 +180,6 @@ public struct ShareExtensionChildView: View {
|
||||
Spacer()
|
||||
}
|
||||
}
|
||||
// if case ShareExtensionStatus.saved = status {
|
||||
// HStack(spacing: 4) {
|
||||
// Text("Saved to Omnivore")
|
||||
// .font(.appTitleThree)
|
||||
// .foregroundColor(.appGrayText)
|
||||
// .padding(.trailing, 16)
|
||||
// .multilineTextAlignment(.center)
|
||||
// .fixedSize(horizontal: false, vertical: true)
|
||||
// .lineLimit(nil)
|
||||
// }
|
||||
// .padding()
|
||||
// } else if case let ShareExtensionStatus.failed(error) = status {
|
||||
// HStack {
|
||||
// Spacer()
|
||||
// Text(error.displayMessage)
|
||||
// Spacer()
|
||||
// }
|
||||
// } else {
|
||||
// HStack {
|
||||
// Spacer()
|
||||
// Text("Saving...")
|
||||
// Spacer()
|
||||
// }
|
||||
// }
|
||||
|
||||
ScrollView {
|
||||
if FeatureFlag.enableRemindersFromShareExtension {
|
||||
|
||||
Reference in New Issue
Block a user