Skip to content

Commit 018bac4

Browse files
committed
Remove deprecated APIs
1 parent 9e89ce3 commit 018bac4

27 files changed

+73
-1191
lines changed

Sources/LCP/Deprecated.swift

Lines changed: 0 additions & 50 deletions
This file was deleted.

Sources/OPDS/Deprecated.swift

Lines changed: 0 additions & 28 deletions
This file was deleted.

Sources/Shared/DRM/DRM+Deprecated.swift

Lines changed: 0 additions & 144 deletions
This file was deleted.

Sources/Shared/Publication/Asset/FileAsset.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,3 @@ extension FileAsset: CustomStringConvertible {
6969
"FileAsset(\(url.path))"
7070
}
7171
}
72-
73-
/// Represents a path on the file system.
74-
///
75-
/// Used to cache the `MediaType` to avoid computing it at different locations.
76-
@available(*, unavailable, renamed: "FileAsset")
77-
public typealias File = FileAsset

Sources/Shared/Publication/ContentLayout.swift

Lines changed: 0 additions & 25 deletions
This file was deleted.

Sources/Shared/Publication/Extensions/Presentation/Presentation.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,6 @@ public struct Presentation: Equatable {
119119
case scrolled
120120
/// The User Agent can decide how overflow should be handled.
121121
case auto
122-
123-
@available(*, unavailable, message: "Use `Presentation.continuous` instead")
124-
static let scrolledContinuous: Overflow = .scrolled
125122
}
126123

127124
/// Indicates how the linked resource should be displayed in a reading environment that

Sources/Shared/Publication/Locator.swift

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -191,19 +191,6 @@ public struct Locator: Hashable, CustomStringConvertible, Loggable {
191191
/// Syntactic sugar to access the `otherLocations` values by subscripting `Locations` directly.
192192
/// locations["cssSelector"] == locations.otherLocations["cssSelector"]
193193
public subscript(key: String) -> Any? { otherLocations[key] }
194-
195-
@available(*, unavailable, renamed: "init(jsonString:)")
196-
public init(fromString: String) {
197-
fatalError()
198-
}
199-
200-
@available(*, unavailable, renamed: "jsonString")
201-
public func toString() -> String? {
202-
fatalError()
203-
}
204-
205-
@available(*, unavailable, message: "Use `fragments.first` instead")
206-
public var fragment: String? { fragments.first }
207194
}
208195

209196
public struct Text: Hashable, Loggable {
@@ -283,16 +270,6 @@ public struct Locator: Hashable, CustomStringConvertible, Loggable {
283270
highlight: Optional(String(newHighlight)).takeIf { !$0.isEmpty }
284271
)
285272
}
286-
287-
@available(*, unavailable, renamed: "init(jsonString:)")
288-
public init(fromString: String) {
289-
fatalError()
290-
}
291-
292-
@available(*, unavailable, renamed: "jsonString")
293-
public func toString() -> String? {
294-
fatalError()
295-
}
296273
}
297274
}
298275

0 commit comments

Comments
 (0)