Skip to content

Commit

Permalink
remove sqlite3Null() (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
illarionov authored Mar 22, 2024
1 parent f29de30 commit 651e347
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ package ru.pixnews.wasm.sqlite.open.helper.internal.interop

import ru.pixnews.wasm.sqlite.open.helper.common.api.Logger
import ru.pixnews.wasm.sqlite.open.helper.common.api.WasmPtr
import ru.pixnews.wasm.sqlite.open.helper.common.api.WasmPtr.Companion.sqlite3Null
import ru.pixnews.wasm.sqlite.open.helper.common.api.contains
import ru.pixnews.wasm.sqlite.open.helper.common.api.isSqlite3Null
import ru.pixnews.wasm.sqlite.open.helper.common.api.or
Expand Down Expand Up @@ -68,10 +67,6 @@ internal class GraalNativeBindings(
private val localizedComparator = LocalizedComparator()
private val connections = Sqlite3ConnectionRegistry()

override fun connectionNullPtr(): GraalSqlite3ConnectionPtr = GraalSqlite3ConnectionPtr(sqlite3Null())

override fun connectionStatementPtr(): GraalSqlite3StatementPtr = GraalSqlite3StatementPtr(sqlite3Null())

override fun nativeOpen(
path: String,
openFlags: SqliteOpenFlags,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ internal interface SqlOpenHelperNativeBindings<
CP : Sqlite3ConnectionPtr,
SP : Sqlite3StatementPtr,
> {
fun connectionNullPtr(): CP
fun connectionStatementPtr(): SP

fun nativeOpen(
path: String,
openFlags: SqliteOpenFlags,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ internal interface Sqlite3Ptr {
fun isNull(): Boolean
}

internal fun Sqlite3Ptr.isNotNull() = !isNull()
internal interface Sqlite3ConnectionPtr : Sqlite3Ptr
internal interface Sqlite3StatementPtr : Sqlite3Ptr

0 comments on commit 651e347

Please sign in to comment.