From 2bad28458213aef8cd5be399239d8eee94a4cba9 Mon Sep 17 00:00:00 2001 From: Rongsong Shen Date: Tue, 25 Nov 2025 11:34:14 +0800 Subject: [PATCH] delete unused code --- src/worker/src/xcecd_db.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/worker/src/xcecd_db.c b/src/worker/src/xcecd_db.c index 2aa7ca7..9253253 100644 --- a/src/worker/src/xcecd_db.c +++ b/src/worker/src/xcecd_db.c @@ -31,15 +31,6 @@ bool xcecd_db_init(xcecd_db_t** db, return false; } -#if 0 - *db = calloc(1, sizeof(xcecd_db_t*)); - if (!*db) { - XCECD_LOG(XCE_LOG_ERROR, - "Failed to allocate memory for database"); - return false; - } -#endif - if (sqlite3_open(db_path, db) != SQLITE_OK) { XCECD_LOG(XCE_LOG_ERROR, "Failed to open database: %s",