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 e901337 commit 7db3634
Showing 1 changed file with 0 additions and 14 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

0 comments on commit 7db3634

Please sign in to comment.