From c277a6e801fdb2b84030a551a573a607da26a49c Mon Sep 17 00:00:00 2001 From: Casey Webb Date: Tue, 5 Jan 2016 16:41:54 -0500 Subject: [PATCH] remove dead code --- dist/ko-component-router.js | 5 ----- src/state.js | 5 ----- 2 files changed, 10 deletions(-) diff --git a/dist/ko-component-router.js b/dist/ko-component-router.js index a337084..2b5332d 100644 --- a/dist/ko-component-router.js +++ b/dist/ko-component-router.js @@ -1227,11 +1227,6 @@ return /******/ (function(modules) { // webpackBootstrap if (history.state && history.state[ctx.config.depth + ctx.pathname()]) { var newState = history.state; delete newState[ctx.config.depth + ctx.pathname()]; - // history.replaceState( - // newState, - // document.title, - // '' === ctx.canonicalPath() ? ctx.config.base : ctx.canonicalPath() - // ) } }; diff --git a/src/state.js b/src/state.js index 33b8bd3..8e56b95 100644 --- a/src/state.js +++ b/src/state.js @@ -34,11 +34,6 @@ module.exports = { if (history.state && history.state[ctx.config.depth + ctx.pathname()]) { const newState = history.state delete newState[ctx.config.depth + ctx.pathname()] - // history.replaceState( - // newState, - // document.title, - // '' === ctx.canonicalPath() ? ctx.config.base : ctx.canonicalPath() - // ) } }