remove quadrable and yesstr

This commit is contained in:
Doug Hoyte
2023-04-29 15:20:04 -04:00
parent 522258dafa
commit 0cbc937bf0
25 changed files with 35 additions and 600 deletions

View File

@ -5,7 +5,6 @@
#include "DBQuery.h"
#include "events.h"
#include "gc.h"
static const char USAGE[] =
@ -65,23 +64,17 @@ void cmd_delete(const std::vector<std::string> &subArgs) {
}
auto qdb = getQdbInstance();
LI << "Deleting " << levIds.size() << " events";
{
auto txn = env.txn_rw();
auto changes = qdb.change();
for (auto levId : levIds) {
auto view = env.lookup_Event(txn, levId);
if (!view) continue; // Deleted in between transactions
deleteEvent(txn, changes, *view);
deleteEvent(txn, *view);
}
changes.apply(txn);
txn.commit();
}
}