Skip to content

Commit

Permalink
fix: remove unused code. ref #358
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Mar 6, 2024
1 parent b592e31 commit 6c6ae53
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/views/LocationDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,19 +171,6 @@ export default {
if (oldRoute.path === newRoute.path && JSON.stringify(oldRoute.query) !== JSON.stringify(newRoute.query)) {
this.initLocationPrices()
}
let date = new Date().toISOString();
console.time('split');
for (let i = 0; i < 1000000; i++) {
let result = date.split('T')[0];
}
console.timeEnd('split');
console.time('substring');
for (let i = 0; i < 1000000; i++) {
let result = date.substring(0, 10);
}
console.timeEnd('substring');
}
}
}
Expand Down

0 comments on commit 6c6ae53

Please sign in to comment.