Skip to content

Commit b8c6605

Browse files
committed
Remove unnecessary typealiasing
Signed-off-by: Stephen Celis <stephen@stephencelis.com>
1 parent 0d6c641 commit b8c6605

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

SQLite Tests/QueryTests.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -481,15 +481,13 @@ private let formatter: NSDateFormatter = {
481481

482482
extension NSDate: Value {
483483

484-
public typealias Datatype = String
484+
public class var declaredDatatype: String { return String.declaredDatatype }
485485

486-
public class var declaredDatatype: String { return Datatype.declaredDatatype }
487-
488-
public class func fromDatatypeValue(datatypeValue: Datatype) -> NSDate {
486+
public class func fromDatatypeValue(datatypeValue: String) -> NSDate {
489487
return formatter.dateFromString(datatypeValue)!
490488
}
491489

492-
public var datatypeValue: Datatype {
490+
public var datatypeValue: String {
493491
return formatter.stringFromDate(self)
494492
}
495493

SQLite/Query.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -809,9 +809,7 @@ public struct Row {
809809
// MARK: - SequenceType
810810
extension Query: SequenceType {
811811

812-
public typealias Generator = QueryGenerator
813-
814-
public func generate() -> Generator { return Generator(self) }
812+
public func generate() -> QueryGenerator { return QueryGenerator(self) }
815813

816814
}
817815

0 commit comments

Comments
 (0)