diff --git a/app/assets/javascripts/discourse/app/components/glimmer.js b/app/assets/javascripts/discourse/app/components/glimmer.js index 5757e1c0228..cf3d4aeeb2c 100644 --- a/app/assets/javascripts/discourse/app/components/glimmer.js +++ b/app/assets/javascripts/discourse/app/components/glimmer.js @@ -2,7 +2,6 @@ import GlimmerComponent from "@glimmer/component"; import { cached } from "@glimmer/tracking"; import { getOwner } from "@ember/application"; import { inject as service } from "@ember/service"; -import { DEBUG } from "@glimmer/env"; /* Glimmer components are not EmberObjects, and therefore do not support automatic @@ -71,11 +70,3 @@ export default class DiscourseGlimmerComponent extends GlimmerComponent { return applicationInstance.lookup("key-value-store:main"); } } - -// This little hack will trick our outdated Ember GlobalResolver into -// accepting glimmer components in debug mode. -// https://github.com/emberjs/ember.js/blob/d4dc4b4cc5/packages/%40ember/application/globals-resolver.js#L142-L165 -// We can remove it once we've updated our resolver to a more recent implementation -if (DEBUG) { - DiscourseGlimmerComponent.isComponentFactory = true; -}