Skip to content

Commit d0df65e

Browse files
feat: Remove unused function
1 parent 7105bb1 commit d0df65e

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

‎static/app/views/detectors/hooks/useIncidentMarkers.tsx‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -138,17 +138,6 @@ function findClickedIncidentPeriod(
138138
return undefined;
139139
}
140140

141-
function findIncidentPeriodAtTimestamp(
142-
incidentPeriods: IncidentPeriod[],
143-
timestamp: number
144-
): IncidentPeriod | undefined {
145-
// Use find last because later markers are drawn on top of earlier ones where they overlap.
146-
// The start is exclusive because chart data points sit at the end of their bucket.
147-
return incidentPeriods.findLast(
148-
period => period.start < timestamp && timestamp <= period.end
149-
);
150-
}
151-
152141
/**
153142
* Creates a custom series that renders incident highlights underneath the main chart
154143
*/

0 commit comments

Comments
 (0)