From c69b3256bad8258cfb60fa560ad0220a0652407b Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Mon, 4 Jan 2016 23:44:36 -0500 Subject: [PATCH] Slightly simplified Swift usage. --- OSBindings/Mac/Clock Signal/Documents/Atari2600Document.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OSBindings/Mac/Clock Signal/Documents/Atari2600Document.swift b/OSBindings/Mac/Clock Signal/Documents/Atari2600Document.swift index bf58f176f..835597711 100644 --- a/OSBindings/Mac/Clock Signal/Documents/Atari2600Document.swift +++ b/OSBindings/Mac/Clock Signal/Documents/Atari2600Document.swift @@ -31,7 +31,7 @@ class Atari2600Document: MachineDocument { return "Atari2600Document" } - private var atari2600: CSAtari2600! = nil + private var atari2600 = CSAtari2600() override func dataOfType(typeName: String) throws -> NSData { // Insert code here to write your document to data of the specified type. If outError != nil, ensure that you create and set an appropriate error when returning nil. // You can also choose to override fileWrapperOfType:error:, writeToURL:ofType:error:, or writeToURL:ofType:forSaveOperation:originalContentsURL:error: instead. @@ -39,7 +39,6 @@ class Atari2600Document: MachineDocument { } override func readFromData(data: NSData, ofType typeName: String) throws { - atari2600 = CSAtari2600() atari2600.setROM(data) }