mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:57:07 +00:00
Remove dead code
This commit is contained in:
@@ -100,23 +100,6 @@ class ReportLineChangeTime {
|
||||
return str.trim();
|
||||
}
|
||||
|
||||
// const deleteStaleEvents = async (id) => {
|
||||
// if (id) {
|
||||
// DEBUG("Will delete lct events related to record(s)", id);
|
||||
//
|
||||
// const jpq = Array.isArray(id)
|
||||
// ? `$."${this.author}".parents ? (${[ ...new Set(id)].map(i => "@ == "+i).join(" || ")})`
|
||||
// : `$."${this.author}".parents ? (@ == ${id})`;
|
||||
// DEBUG("jpq", jpq);
|
||||
// const staleEvents = await event.list(projectId, {jpq});
|
||||
// DEBUG(staleEvents.length ?? 0, "events to delete");
|
||||
// for (let staleEvent of staleEvents) {
|
||||
// DEBUG("Deleting event", staleEvent.id);
|
||||
// await event.del(projectId, staleEvent.id);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
const deleteStaleEvents = async (seq) => {
|
||||
if (seq) {
|
||||
DEBUG("Will delete lct events related to sequence(s)", seq);
|
||||
|
||||
Reference in New Issue
Block a user