Skip to content

Commit

Permalink
Remove getTemplate stuff
Browse files Browse the repository at this point in the history
According to @krisselden this is not needed, and `meta.moduleName` is already what we want. With that in mind, I am removing this stuff. Fixes emberjs#750
  • Loading branch information
RobbieTheWagner authored and cyril-sf committed Mar 30, 2022
1 parent e2b9cd9 commit e0b0013
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions ember_debug/libs/glimmer-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,7 @@ export default class {

if (!template) {
let layout = component.get('layout');
if (layout) {
layout = this.getGlimmerEnvironment().getTemplate(layout);
} else {
if (!layout) {
let componentName = component.get('_debugContainerKey');
if (componentName) {
let layoutName = componentName.replace(/component:/, 'template:components/');
Expand Down Expand Up @@ -553,16 +551,6 @@ export default class {
}
}

/**
* The glimmer environment is needed for looking up templates.
*
* @method getGlimmerEnvironment
* @return {Class} The glimmer environment
*/
getGlimmerEnvironment() {
return this.container.lookup('service:-glimmer-environment');
}

/**
* Renders a rectangle around a component's element. This happens
* when the user either hovers over the view tree components
Expand Down

0 comments on commit e0b0013

Please sign in to comment.