From 02e1bfdf910e14abdb212033b8400a6da0f8e71d Mon Sep 17 00:00:00 2001 From: Nathaniel Furniss Date: Tue, 13 Jul 2021 21:42:53 -0700 Subject: [PATCH] Remove old deprecations path --- packages/@ember/application/deprecations.ts | 39 --------------------- packages/ember/tests/reexports_test.js | 4 --- 2 files changed, 43 deletions(-) delete mode 100644 packages/@ember/application/deprecations.ts diff --git a/packages/@ember/application/deprecations.ts b/packages/@ember/application/deprecations.ts deleted file mode 100644 index 61895f3da8c..00000000000 --- a/packages/@ember/application/deprecations.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { - deprecate as _deprecate, - deprecateFunc as _deprecateFunc, - DeprecationOptions, -} from '@ember/debug'; - -export function deprecate(message: string, condition: boolean, options: DeprecationOptions): void { - _deprecate( - "`import { deprecate } from '@ember/application/deprecations';` has been deprecated, please update to `import { deprecate } from '@ember/debug';`", - false, - { - id: 'old-deprecate-method-paths', - until: '4.0.0', - for: 'ember-source', - since: { - enabled: '3.0.0', - }, - } - ); - - _deprecate(message, condition, options); -} - -export function deprecateFunc(message: string, options: DeprecationOptions, func: Function): void { - _deprecate( - "`import { deprecateFunc } from '@ember/application/deprecations';` has been deprecated, please update to `import { deprecateFunc } from '@ember/debug';`", - false, - { - id: 'old-deprecate-method-paths', - until: '4.0.0', - for: 'ember-source', - since: { - enabled: '3.0.0', - }, - } - ); - - _deprecateFunc(message, options, func); -} diff --git a/packages/ember/tests/reexports_test.js b/packages/ember/tests/reexports_test.js index 8960a2a1e1a..2f25248286a 100644 --- a/packages/ember/tests/reexports_test.js +++ b/packages/ember/tests/reexports_test.js @@ -164,10 +164,6 @@ let allExports = [ ['runLoadHooks', '@ember/application', 'runLoadHooks'], ['setOwner', '@ember/application', 'setOwner'], - // @ember/application/deprecations - [null, '@ember/application/deprecations', 'deprecate'], - [null, '@ember/application/deprecations', 'deprecateFunc'], - // @ember/application/instance ['ApplicationInstance', '@ember/application/instance', 'default'],