clean up
This commit is contained in:
parent
8612b34ac7
commit
b6ccbecdf5
@ -9,8 +9,8 @@
|
|||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
extension MFViewController: ModuleDelegateProtocol {
|
extension MFViewController: ModuleDelegateProtocol {
|
||||||
public func getModuleWithName(_ moleculeName: String) -> Model? {
|
public func getModuleWithName(_ moduleName: String) -> Model? {
|
||||||
guard let moduleJSON = loadObject?.modulesJSON?.optionalDictionaryForKey(moleculeName),
|
guard let moduleJSON = loadObject?.modulesJSON?.optionalDictionaryForKey(moduleName),
|
||||||
let moleculeName = moduleJSON.optionalStringForKey("moleculeName"),
|
let moleculeName = moduleJSON.optionalStringForKey("moleculeName"),
|
||||||
let modelType = ModelRegistry.getType(for: moleculeName) else {
|
let modelType = ModelRegistry.getType(for: moleculeName) else {
|
||||||
return nil
|
return nil
|
||||||
@ -25,21 +25,7 @@ extension MFViewController: ModuleDelegateProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public extension MFViewController {
|
public extension MFViewController {
|
||||||
|
|
||||||
@objc func parsePageJSON() {
|
@objc func parsePageJSON() {
|
||||||
|
|
||||||
(self as? TemplateProtocol)?.parseTemplateJSON()
|
(self as? TemplateProtocol)?.parseTemplateJSON()
|
||||||
// guard let pageJSON = loadObject?.pageJSON as? [String: AnyHashable] else {
|
|
||||||
// return
|
|
||||||
// }
|
|
||||||
// do {
|
|
||||||
// let pageData = try JSONSerialization.data(withJSONObject: pageJSON)
|
|
||||||
// let decoder = JSONDecoder()
|
|
||||||
//
|
|
||||||
// let pageModel = try decoder.decode(PageModel.self, from: pageData)
|
|
||||||
// self.pageModel = pageModel
|
|
||||||
// } catch {
|
|
||||||
// MVMCoreUILoggingHandler.logDebugMessage(withDelegate: "error: \(error)")
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user