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); 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) {