Removed the unused code

This commit is contained in:
DreamPiggy 2022-09-15 00:50:04 +08:00
parent 13090bcc98
commit a75add8e3a
2 changed files with 0 additions and 18 deletions

View File

@ -55,22 +55,6 @@ public final class ImageManager : ObservableObject {
init() {}
public var isValid: Bool {
manager != nil
}
/// Update the manager with new url, options and context. This is not designed to be used outsize, only provided for `@StateObject`. Must call setup after `init()`
func setup(url: URL?, options: SDWebImageOptions = [], context: [SDWebImageContextOption : Any]? = nil) {
self.url = url
self.options = options
self.context = context
if let manager = context?[.customManager] as? SDWebImageManager {
self.manager = manager
} else {
self.manager = .shared
}
}
/// Start to load the url operation
public func load() {
guard let manager = manager else {

View File

@ -16,8 +16,6 @@ public final class ImagePlayer : ObservableObject {
var waitingPlaying = false
public var currentView: Image?
/// Max buffer size
public var maxBufferSize: UInt?