DEV: Remove "empty" template code (#16140)

Its only use seems to have been removed back in 2016 in a9ed15e11a.
This commit is contained in:
Jarek Radosz 2022-03-09 13:57:39 +01:00 committed by GitHub
parent 43da88db6c
commit fbef828ab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -1,5 +1,4 @@
import DiscourseURL from "discourse/lib/url";
import Handlebars from "handlebars";
import { isDevelopment } from "discourse-common/config/environment";
// Use the message bus for live reloading of components for faster development.
@ -51,10 +50,6 @@ export default {
messageBus.subscribe(
"/file-change",
(data) => {
if (Handlebars.compile && !Ember.TEMPLATES.empty) {
// hbs notifications only happen in dev
Ember.TEMPLATES.empty = Handlebars.compile("<div></div>");
}
data.forEach((me) => {
if (me === "refresh") {
// Refresh if necessary