diff options
| -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)); |
