Skip to content

Commit

Permalink
Remove meta-destruction-apis
Browse files Browse the repository at this point in the history
  • Loading branch information
mixonic committed Jul 18, 2021
1 parent 9149433 commit 1d4f9d1
Showing 1 changed file with 0 additions and 66 deletions.
66 changes: 0 additions & 66 deletions packages/@ember/-internals/meta/lib/meta.ts
Expand Up @@ -133,72 +133,6 @@ export class Meta {
return parent;
}

// These methods are here to prevent errors in legacy compat with some addons
// that used them as intimate API
setSourceDestroying() {
deprecate(
'setSourceDestroying is deprecated, use the destroy() API to destroy the object directly instead',
false,
{
id: 'meta-destruction-apis',
until: '3.25.0',
for: 'ember-source',
since: {
enabled: '3.21.0',
},
}
);
}

setSourceDestroyed() {
deprecate(
'setSourceDestroyed is deprecated, use the destroy() API to destroy the object directly instead',
false,
{
id: 'meta-destruction-apis',
until: '3.25.0',
for: 'ember-source',
since: {
enabled: '3.21.0',
},
}
);
}

isSourceDestroying() {
deprecate(
'isSourceDestroying is deprecated, use the isDestroying() API to check the object destruction state directly instead',
false,
{
id: 'meta-destruction-apis',
until: '3.25.0',
for: 'ember-source',
since: {
enabled: '3.21.0',
},
}
);

return isDestroying(this.source);
}

isSourceDestroyed() {
deprecate(
'isSourceDestroyed is deprecated, use the isDestroyed() API to check the object destruction state directly instead',
false,
{
id: 'meta-destruction-apis',
until: '3.25.0',
for: 'ember-source',
since: {
enabled: '3.21.0',
},
}
);

return isDestroyed(this.source);
}

setInitializing() {
this._isInit = true;
}
Expand Down

0 comments on commit 1d4f9d1

Please sign in to comment.