File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
Modules/Sources/Networking/Tools Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff 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 ? {
You can’t perform that action at this time.
0 commit comments