Skip to content

Commit

Permalink
mixins/array: Remove deprecated copy() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Dec 19, 2018
1 parent 7d808a6 commit b48f2e5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
14 changes: 0 additions & 14 deletions packages/@ember/-internals/runtime/lib/mixins/array.js
Expand Up @@ -26,7 +26,6 @@ import Enumerable from './enumerable';
import compare from '../compare';
import { ENV } from '@ember/-internals/environment';
import Observable from '../mixins/observable';
import copy from '../copy';
import MutableEnumerable from './mutable_enumerable';
import { typeOf } from '../type-of';

Expand Down Expand Up @@ -1583,19 +1582,6 @@ let NativeArray = Mixin.create(MutableArray, Observable, {

return this;
},

copy(deep) {
deprecate(`Using \`NativeArray#copy\` is deprecated`, false, {
id: 'ember-runtime.using-array-copy',
until: '3.5.0',
});

if (deep) {
return this.map(item => copy(item, true));
}

return this.slice();
},
});

// Remove any methods implemented natively so we don't override them
Expand Down

This file was deleted.

0 comments on commit b48f2e5

Please sign in to comment.