diff options
| author | Oskar <oskar@mullvad.net> | 2025-10-08 14:57:23 +0200 |
|---|---|---|
| committer | Oskar <oskar@mullvad.net> | 2025-10-09 13:21:11 +0200 |
| commit | b1bcdcd96e21e152f56bcd5316fd26197c0b56a1 (patch) | |
| tree | 7515b62e04a053dfad737b1cc3381ea72381098e | |
| parent | 6992fc2142a654eb2b5ff18d903ec35c78cfc649 (diff) | |
| download | mullvadvpn-b1bcdcd96e21e152f56bcd5316fd26197c0b56a1.tar.xz mullvadvpn-b1bcdcd96e21e152f56bcd5316fd26197c0b56a1.zip | |
Remove unused history function replaceRoot
| -rw-r--r-- | desktop/packages/mullvad-vpn/src/renderer/lib/history.tsx | 13 |
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)); |
