forked from readium/swift-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDeprecated.swift
39 lines (27 loc) · 1.11 KB
/
Deprecated.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// Deprecated.swift
// readium-opds
//
// Created by Mickaël Menu on 20.02.19.
//
// Copyright 2018 Readium Foundation. All rights reserved.
// Use of this source code is governed by a BSD-style license which is detailed
// in the LICENSE file present in the project repository where this source code is maintained.
//
import Foundation
import R2Shared
public typealias Promise<T> = Void
extension OPDSParser {
@available(*, unavailable, message: "Use `parseURL(url:completion:)` instead")
public static func parseURL(url: URL) -> Promise<ParseData> {}
}
extension OPDS1Parser {
@available(*, unavailable, message: "Use `parseURL(url:completion:)` instead")
public static func parseURL(url: URL) -> Promise<ParseData> {}
@available(*, unavailable, message: "Use `fetchOpenSearchTemplate(feed:completion:)` instead")
public static func fetchOpenSearchTemplate(feed: Feed) -> Promise<String> {}
}
extension OPDS2Parser {
@available(*, unavailable, message: "Use `parseURL(url:completion:)` instead")
public static func parseURL(url: URL) -> Promise<ParseData> {}
}