Skip to content

Commit 6172512

Browse files
committed
Remove unused method from Loader
1 parent 83bbdcb commit 6172512

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Modules/Sources/Networking/Tools/Loader.swift

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,6 @@ class Loader {
99
///
1010
static let jsonExtension = "json"
1111

12-
13-
/// Loads the specified filename.type Resource, and returns it's JSON Representation.
14-
///
15-
static func jsonObject(for filename: String, extension: String = jsonExtension) -> Any? {
16-
guard let data = contentsOf(filename, extension: `extension`) else {
17-
return nil
18-
}
19-
20-
do {
21-
return try JSONSerialization.jsonObject(with: data, options: [.mutableContainers, .mutableLeaves])
22-
} catch {
23-
DDLogError("Parsing Error: \(error)")
24-
}
25-
26-
return nil
27-
}
28-
29-
3012
/// Loads the contents of the specified file (in the current bundle), and returns it's contents as `Data`.
3113
///
3214
static func contentsOf(_ filename: String, extension: String = jsonExtension) -> Data? {

0 commit comments

Comments
 (0)