Skip to content

Commit 652419a

Browse files
committed
Removed the unused code
1 parent fde6516 commit 652419a

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
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 {

0 commit comments

Comments
 (0)