Skip to content

Commit feba16b

Browse files
committed
Remove detectInstance
1 parent b1b0394 commit feba16b

File tree

3 files changed

+1
-46
lines changed

3 files changed

+1
-46
lines changed

packages/@ember/object/core.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -456,10 +456,6 @@ class CoreObject {
456456
return false;
457457
}
458458

459-
static detectInstance(obj: unknown) {
460-
return obj instanceof this;
461-
}
462-
463459
static get superclass() {
464460
let c = Object.getPrototypeOf(this);
465461
return c !== Function.prototype ? c : undefined;

packages/@ember/object/tests/detectInstance_test.js

Lines changed: 0 additions & 38 deletions
This file was deleted.

packages/@ember/object/tests/toString_test.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ moduleFor(
1212
// simulate these classes being defined on a Namespace
1313
setName(Foo, 'Foo');
1414

15-
assert.equal(
16-
foo.toString(),
17-
'<(unknown):' + guidFor(foo) + '>'
18-
);
15+
assert.equal(foo.toString(), '<(unknown):' + guidFor(foo) + '>');
1916
}
2017
}
2118
);

0 commit comments

Comments
 (0)