From c220b574735c144e2a4ae729c2f2dfc8e4e2f0a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 21 Jul 2015 22:33:53 +0200 Subject: [PATCH] Remove RowModelError.Dummy since rdar://problem/21707972 is fixed by Xcode 7 beta 4. --- GRDB/RowModel.swift | 8 -------- TODO.md | 1 - 2 files changed, 9 deletions(-) diff --git a/GRDB/RowModel.swift b/GRDB/RowModel.swift index a7694f287..2dfcee395 100644 --- a/GRDB/RowModel.swift +++ b/GRDB/RowModel.swift @@ -656,12 +656,6 @@ public enum RowModelError: ErrorType { /// No matching row could be found in the database. case RowModelNotFound(RowModel) - - /// This error is never thrown. Its mere existence prevents - /// rdar://problem/21707972, which makes thrown RowModelNotFound be catched - /// as InvalidPrimaryKey. - case Dummy(String) - } extension RowModelError : CustomStringConvertible { @@ -672,8 +666,6 @@ extension RowModelError : CustomStringConvertible { return "Invalid primary key in \(rowModel)" case .RowModelNotFound(let rowModel): return "RowModel not found: \(rowModel)" - case .Dummy: - return "Dummy" } } } diff --git a/TODO.md b/TODO.md index ce0235ea8..2bd9c9646 100644 --- a/TODO.md +++ b/TODO.md @@ -1,4 +1,3 @@ -- [ ] Remove RowModelError.Dummy when rdar://problem/21707972 is fixed. - [ ] DateTime supports ISO-8601 format: document that comparison and sorting can't work with SQLite-generated values like CURRENT_TIMESTAMP. - [ ] Test edited flag with Int property backed by a REAL database column. - [ ] Use the new `- Throws:` comments \ No newline at end of file