summaryrefslogtreecommitdiff
path: root/frontend/src/util/timeline.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/util/timeline.js')
-rw-r--r--frontend/src/util/timeline.js9
1 files changed, 0 insertions, 9 deletions
diff --git a/frontend/src/util/timeline.js b/frontend/src/util/timeline.js
deleted file mode 100644
index 7c8a3ef0..00000000
--- a/frontend/src/util/timeline.js
+++ /dev/null
@@ -1,9 +0,0 @@
-export function convertTickToPercentage(tick, maxTick) {
- if (maxTick === 0) {
- return '0%'
- } else if (tick > maxTick) {
- return (maxTick / (maxTick + 1)) * 100 + '%'
- }
-
- return (tick / (maxTick + 1)) * 100 + '%'
-}