mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[DBI Backend] Remove unused TableOpTypes.
This commit is contained in:
parent
74cbde2d4f
commit
464fdeeb26
@ -51,9 +51,7 @@ class GncSqlRow;
|
||||
*/
|
||||
enum TableOpType
|
||||
{
|
||||
drop = 0,
|
||||
empty,
|
||||
backup,
|
||||
backup = 0,
|
||||
rollback,
|
||||
drop_backup
|
||||
};
|
||||
|
@ -672,13 +672,6 @@ GncDbiSqlConnection::table_operation(TableOpType op) noexcept
|
||||
case drop_backup:
|
||||
result = table_manage_backup (table, op);
|
||||
break;
|
||||
case empty:
|
||||
result = dbi_conn_queryf (m_conn, "DELETE FROM TABLE %s",
|
||||
table.c_str());
|
||||
break;
|
||||
case drop:
|
||||
default:
|
||||
result = dbi_conn_queryf (m_conn, "DROP TABLE %s", table.c_str());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user