From 47396b8a8792bc6bc03cf9f5cbb14282417125bc Mon Sep 17 00:00:00 2001 From: All Asmaul Husnain <2263081025@uttarauniversity.edu.bd> Date: Sat, 10 Oct 2026 17:29:30 +0600 Subject: [PATCH 1/2] Remove unusable table_create implementation --- src/database.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/database.c b/src/database.c index ad62a9e..72208e7 100644 --- a/src/database.c +++ b/src/database.c @@ -44,15 +44,6 @@ static Table *allocate_table(void) return table; } -Table *table_create(size_t capacity) -{ - if (capacity == 0 || capacity > TABLE_ROW_CAPACITY) { - return NULL; - } - - return allocate_table(); -} - Table *table_open(const char *filename, SqliteResult *result) { if (filename == NULL || result == NULL) { From c8128ce86042a01a27ea30ff7b4c9bf2e3a551d1 Mon Sep 17 00:00:00 2001 From: All Asmaul Husnain <2263081025@uttarauniversity.edu.bd> Date: Sat, 10 Oct 2026 17:29:32 +0600 Subject: [PATCH 2/2] Remove unusable table_create declaration --- include/sqlite.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/sqlite.h b/include/sqlite.h index abf21e1..eaf0444 100644 --- a/include/sqlite.h +++ b/include/sqlite.h @@ -29,7 +29,6 @@ typedef struct { typedef struct Table Table; -Table *table_create(size_t capacity); Table *table_open(const char *filename, SqliteResult *result); void table_destroy(Table *table); SqliteResult table_flush(Table *table);