Skip to content

Commit

Permalink
DEV: Remove "empty" template code (discourse#16140)
Browse files Browse the repository at this point in the history
Its only use seems to have been removed back in 2016 in a9ed15e.
  • Loading branch information
CvX authored Mar 9, 2022
1 parent 43da88d commit fbef828
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fbef828

Please sign in to comment.