delete unused code

This commit is contained in:
Rongsong Shen 2025-11-25 11:34:14 +08:00
parent 0a63d49852
commit 2bad284582

View file

@ -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",