Skip to content

Commit de22dcd

Browse files
committed
Get rid of unused code
1 parent 1edf6d5 commit de22dcd

6 files changed

Lines changed: 0 additions & 48 deletions

File tree

.zed/settings.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

android/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ add_library(
2323
../cpp/PreparedStatementHostObject.cpp
2424
../cpp/DumbHostObject.cpp
2525
../cpp/DBHostObject.cpp
26-
../cpp/DB.cpp
2726
cpp-adapter.cpp
2827
)
2928

cpp/bridge.cpp

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -150,36 +150,6 @@ void create_dirs_if_needed(const std::string &path) {
150150
}
151151
}
152152

153-
sqlite3 *opsqlite_open_v2(const std::string &path) {
154-
create_dirs_if_needed(path);
155-
156-
char *errMsg;
157-
sqlite3 *db;
158-
159-
int flags =
160-
SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_FULLMUTEX;
161-
162-
int status = sqlite3_open_v2(path.c_str(), &db, flags, nullptr);
163-
164-
if (status != SQLITE_OK) {
165-
throw std::runtime_error(sqlite3_errmsg(db));
166-
}
167-
168-
#ifdef OP_SQLITE_USE_SQLCIPHER
169-
if (!encryption_key.empty()) {
170-
opsqlite_execute(db, "PRAGMA key = '" + encryption_key + "'", nullptr);
171-
}
172-
#endif
173-
174-
#ifndef OP_SQLITE_USE_PHONE_VERSION
175-
sqlite3_enable_load_extension(db, 1);
176-
#endif
177-
178-
TOKENIZER_LIST
179-
180-
return db;
181-
}
182-
183153
void opsqlite_close(sqlite3 *db) {
184154
#ifdef OP_SQLITE_USE_CRSQLITE
185155
opsqlite_execute(db, "select crsql_finalize();", nullptr);

cpp/bridge.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,10 @@ sqlite3 *opsqlite_open(std::string const &name, std::string const &path,
3636
std::string const &sqlite_vec_path);
3737
#endif
3838

39-
sqlite3 *opsqlite_open_v2(std::string const &path);
40-
4139
void opsqlite_close(sqlite3 *db);
4240

4341
void opsqlite_remove(sqlite3 *db, std::string const &name,
4442
std::string const &doc_path);
45-
void opsqlite_remove_v2(sqlite3 *db, std::string const &path);
4643

4744
void opsqlite_attach(sqlite3 *db, std::string const &doc_path,
4845
std::string const &secondary_db_name,

cpp/utils.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ namespace react = facebook::react;
1616

1717
auto __thread_pool = std::make_shared<ThreadPool>();
1818

19-
using HostPromiseFunctionType = std::function<jsi::Value(
20-
jsi::Runtime &rt, const jsi::Value &thisVal, const jsi::Value *args,
21-
size_t count, jsi::Function resolve, jsi::Function reject)>;
22-
2319
inline jsi::Value to_jsi(jsi::Runtime &rt, const JSVariant &value) {
2420
if (std::holds_alternative<bool>(value)) {
2521
return std::get<bool>(value);

0 commit comments

Comments
 (0)