refactor: remove trivially inferred numEvents

This commit is contained in:
Carlos Valente
2025-05-19 22:09:28 +02:00
committed by arc-alex
parent 2f26f20db5
commit 2546159a94
11 changed files with 5 additions and 20 deletions
@@ -550,7 +550,6 @@ describe('generate() v4', () => {
endTime: 400,
duration: 300,
isFirstLinked: false,
numEvents: 3,
},
'100': { type: SupportedEntry.Event, parent: '1' },
'200': { type: SupportedEntry.Event, parent: '1' },
@@ -591,7 +590,6 @@ describe('generate() v4', () => {
endTime: 400,
duration: 300,
isFirstLinked: false,
numEvents: 3,
},
'101': { parent: '1', gap: 90, linkStart: false },
'102': { parent: '1' },
@@ -603,7 +601,6 @@ describe('generate() v4', () => {
endTime: 800,
duration: 300,
isFirstLinked: false,
numEvents: 3,
},
'201': { id: '201', timeStart: 500, timeEnd: 600, duration: 100, gap: 100, linkStart: false },
'202': { id: '202', timeStart: 600, timeEnd: 700, duration: 100 },
@@ -615,7 +612,6 @@ describe('generate() v4', () => {
endTime: 1200,
duration: 300,
isFirstLinked: false,
numEvents: 3,
},
'301': { id: '301', timeStart: 900, timeEnd: 1000, duration: 100, gap: 100, linkStart: false },
'302': { id: '302', timeStart: 1000, timeEnd: 1100, duration: 100 },
@@ -169,7 +169,6 @@ export function generate(
processedEntry.endTime = blockEndTime;
processedEntry.isFirstLinked = isFirstLinked;
processedEntry.events = blockEvents;
processedEntry.numEvents = blockEvents.length;
}
}
@@ -416,7 +415,6 @@ export function remove({ rundown, eventIds }: RemoveArgs): MutatingReturn {
eventId: entry.parent,
patch: {
events: parentEvents,
numEvents: parentEvents.length,
},
});
}