clean up
This commit is contained in:
parent
8612b34ac7
commit
b6ccbecdf5
@ -9,8 +9,8 @@
|
||||
import Foundation
|
||||
|
||||
extension MFViewController: ModuleDelegateProtocol {
|
||||
public func getModuleWithName(_ moleculeName: String) -> Model? {
|
||||
guard let moduleJSON = loadObject?.modulesJSON?.optionalDictionaryForKey(moleculeName),
|
||||
public func getModuleWithName(_ moduleName: String) -> Model? {
|
||||
guard let moduleJSON = loadObject?.modulesJSON?.optionalDictionaryForKey(moduleName),
|
||||
let moleculeName = moduleJSON.optionalStringForKey("moleculeName"),
|
||||
let modelType = ModelRegistry.getType(for: moleculeName) else {
|
||||
return nil
|
||||
@ -25,21 +25,7 @@ extension MFViewController: ModuleDelegateProtocol {
|
||||
}
|
||||
|
||||
public extension MFViewController {
|
||||
|
||||
@objc func parsePageJSON() {
|
||||
|
||||
(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