Skip to content

Commit 53a4349

Browse files
committed
Removed the unused code
1 parent fde6516 commit 53a4349

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

SDWebImageSwiftUI/Classes/ImageManager.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,6 @@ public final class ImageManager : ObservableObject {
5555

5656
init() {}
5757

58-
public var isValid: Bool {
59-
manager != nil
60-
}
61-
62-
/// 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()`
63-
func setup(url: URL?, options: SDWebImageOptions = [], context: [SDWebImageContextOption : Any]? = nil) {
64-
self.url = url
65-
self.options = options
66-
self.context = context
67-
if let manager = context?[.customManager] as? SDWebImageManager {
68-
self.manager = manager
69-
} else {
70-
self.manager = .shared
71-
}
72-
}
73-
7458
/// Start to load the url operation
7559
public func load() {
7660
guard let manager = manager else {

SDWebImageSwiftUI/Classes/ImagePlayer.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ public final class ImagePlayer : ObservableObject {
1616

1717
var waitingPlaying = false
1818

19-
public var currentView: Image?
20-
2119
/// Max buffer size
2220
public var maxBufferSize: UInt?
2321

0 commit comments

Comments
 (0)