Skip to content

Commit ffd0793

Browse files
committed
Revert "public check method, needed for stephencelis#389"
This reverts commit bb3b705.
1 parent 20a10a3 commit ffd0793

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

SQLite/Core/Connection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ public final class Connection {
651651
return success!
652652
}
653653

654-
@discardableResult public func check(_ resultCode: Int32, statement: Statement? = nil) throws -> Int32 {
654+
@discardableResult func check(_ resultCode: Int32, statement: Statement? = nil) throws -> Int32 {
655655
guard let error = Result(errorCode: resultCode, connection: self, statement: statement) else {
656656
return resultCode
657657
}

SQLiteTests/ConnectionTests.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -340,11 +340,4 @@ class ConnectionTests : SQLiteTestCase {
340340
AssertThrows(try stmt.run())
341341
}
342342

343-
func test_check_with_successCode_returnsCode() {
344-
try! XCTAssertEqual(SQLITE_OK, db.check(SQLITE_OK))
345-
}
346-
347-
func test_check_with_errorCode_throws() {
348-
XCTAssertThrowsError(try db.check(SQLITE_CONSTRAINT))
349-
}
350343
}

0 commit comments

Comments
 (0)