From b430c7151e00bcb79f8a3a9656e1dff6b20b8603 Mon Sep 17 00:00:00 2001 From: Scott Newcomer Date: Mon, 4 Jan 2021 13:42:53 -0600 Subject: [PATCH] rm deprecation outdated --- addon/locations/router-scroll.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/addon/locations/router-scroll.js b/addon/locations/router-scroll.js index 9e8f4865..64f2c707 100644 --- a/addon/locations/router-scroll.js +++ b/addon/locations/router-scroll.js @@ -1,6 +1,5 @@ import HistoryLocation from '@ember/routing/history-location'; import { set, get } from '@ember/object'; -import { deprecate } from '@ember/application/deprecations'; const uuid = () => 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => { const r = Math.random() * 16 | 0; @@ -9,19 +8,6 @@ const uuid = () => 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) = }); export default class extends HistoryLocation { - init() { - super.init(...arguments); - - deprecate( - `Setting 'locationType' to 'router-scroll' in config/environment.js is deprecated, please change it to 'auto'. If you are overriding ember-router-scroll's implementation of "pushState" or "replaceState", then you can subclass and override a new location object from: import HistoryLocation from '@ember/routing/history-location';`, - false, - { - id: 'ember-router-scroll', - until: '2.0.0' - } - ); - } - pushState(path) { const state = { path, uuid: uuid() }; get(this, 'history').pushState(state, null, path);