Remove debug lines

This commit is contained in:
Jackson Harper
2022-05-31 15:24:45 -07:00
parent 632d794af5
commit 6faa831e15
3 changed files with 3 additions and 40 deletions

View File

@ -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?

View File

@ -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:

View File

@ -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 {