Skip to content

Commit 8535a2b

Browse files
committed
refactor(timings): remove unused codegen_time function
This has not yet been used since at least 2019 (77a47b3)
1 parent 1bd6113 commit 8535a2b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/cargo/core/compiler/timings/timings.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -557,14 +557,6 @@ function split_ticks(max_value, px_per_v, max_px) {
557557
return {step, tick_dist, num_ticks};
558558
}
559559

560-
function codegen_time(unit) {
561-
if (unit.rmeta_time == null) {
562-
return null;
563-
}
564-
let ctime = unit.duration - unit.rmeta_time;
565-
return [unit.rmeta_time, ctime];
566-
}
567-
568560
function roundedRect(ctx, x, y, width, height, r) {
569561
r = Math.min(r, width, height);
570562
ctx.beginPath();

0 commit comments

Comments
 (0)