delete unused code
This commit is contained in:
parent
0a63d49852
commit
2bad284582
1 changed files with 0 additions and 9 deletions
|
|
@ -31,15 +31,6 @@ bool xcecd_db_init(xcecd_db_t** db,
|
||||||
return false;
|
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) {
|
if (sqlite3_open(db_path, db) != SQLITE_OK) {
|
||||||
XCECD_LOG(XCE_LOG_ERROR,
|
XCECD_LOG(XCE_LOG_ERROR,
|
||||||
"Failed to open database: %s",
|
"Failed to open database: %s",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue