summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOskar <oskar@mullvad.net>2025-10-08 14:57:23 +0200
committerOskar <oskar@mullvad.net>2025-10-09 13:21:11 +0200
commitb1bcdcd96e21e152f56bcd5316fd26197c0b56a1 (patch)
tree7515b62e04a053dfad737b1cc3381ea72381098e
parent6992fc2142a654eb2b5ff18d903ec35c78cfc649 (diff)
downloadmullvadvpn-b1bcdcd96e21e152f56bcd5316fd26197c0b56a1.tar.xz
mullvadvpn-b1bcdcd96e21e152f56bcd5316fd26197c0b56a1.zip
Remove unused history function replaceRoot
-rw-r--r--desktop/packages/mullvad-vpn/src/renderer/lib/history.tsx13
1 files changed, 0 insertions, 13 deletions
diff --git a/desktop/packages/mullvad-vpn/src/renderer/lib/history.tsx b/desktop/packages/mullvad-vpn/src/renderer/lib/history.tsx
index f661a5f191..a0d77ed6c0 100644
--- a/desktop/packages/mullvad-vpn/src/renderer/lib/history.tsx
+++ b/desktop/packages/mullvad-vpn/src/renderer/lib/history.tsx
@@ -89,19 +89,6 @@ export default class History {
this.notify(nextState?.transition ?? TransitionType.none);
};
- public replaceRoot = (
- replacementLocation: LocationDescriptor,
- replacementState?: Partial<LocationState>,
- ) => {
- const location = this.createLocation(replacementLocation, replacementState);
- this.lastAction = 'REPLACE';
- this.entries.splice(0, 1, location);
-
- if (this.index === 0) {
- this.notify(replacementState?.transition ?? TransitionType.none);
- }
- };
-
public listen(callback: LocationListener) {
this.listeners.push(callback);
return () => (this.listeners = this.listeners.filter((listener) => listener !== callback));