Skip to content

Commit 0c89f37

Browse files
committed
Remove tracking events for control actions and array size changes
1 parent 139518d commit 0c89f37

4 files changed

Lines changed: 0 additions & 17 deletions

File tree

src/lib/components/ControlButtons.svelte

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
1010
const start = () => {
1111
$running = !$running;
12-
trackEvent('sort-control', { action: $running ? 'start' : 'stop' });
1312
};
1413
1514
const reverse = () => {
@@ -53,7 +52,6 @@
5352
5453
const stepClick = () => {
5554
step();
56-
trackEvent('sort-control', { action: 'step' });
5755
};
5856
</script>
5957

src/lib/components/RangeArraySize.svelte

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
44
import { running } from '../../states';
55
import { trackEvent } from '../umami';
6-
7-
const handleChange = () => {
8-
trackEvent('array-size-changed', { size });
9-
};
106
</script>
117

128
<label class="form-control w-full mb-2">
@@ -23,6 +19,5 @@
2319
min="2"
2420
type="range"
2521
bind:value={size}
26-
on:change={handleChange}
2722
/>
2823
</label>

src/lib/components/RangeArraySizePowerOfTwo.svelte

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
Math.abs(curr - size) < Math.abs(prev - size) ? curr : prev
1313
);
1414
}
15-
16-
const handleChange = () => {
17-
trackEvent('array-size-changed', { size });
18-
};
1915
</script>
2016

2117
<label class="form-control w-full mb-2">
@@ -33,7 +29,6 @@
3329
type="radio"
3430
{value}
3531
bind:group={size}
36-
on:change={handleChange}
3732
/>
3833
{/each}
3934
</div>

src/lib/components/RangeDelay.svelte

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@
2828
return delay;
2929
};
3030
31-
const handleChange = () => {
32-
trackEvent('delay-changed', { delay: realDelay });
33-
};
34-
3531
$: realDelay = getRealDelay(delay);
3632
</script>
3733

@@ -49,6 +45,5 @@
4945
step="0.1"
5046
type="range"
5147
bind:value={delay}
52-
on:change={handleChange}
5348
/>
5449
</label>

0 commit comments

Comments
 (0)