Skip to content

Commit

Permalink
Merge pull request #1331 from nanaya/unused-function
Browse files Browse the repository at this point in the history
Remove unused `getHistoryMethodForAction` function in Visit
  • Loading branch information
brunoprietog authored Dec 13, 2024
2 parents f19f5ec + f4d9ad9 commit 6af611f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/core/drive/visit.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,16 +386,6 @@ export class Visit {

// Private

getHistoryMethodForAction(action) {
switch (action) {
case "replace":
return history.replaceState
case "advance":
case "restore":
return history.pushState
}
}

hasPreloadedResponse() {
return typeof this.response == "object"
}
Expand Down

0 comments on commit 6af611f

Please sign in to comment.