DEV: removes dead code (#8130)

This commit also refactors the new code which did make this dead code
This commit is contained in:
Joffrey JAFFEUX 2019-10-02 12:15:11 -04:00 committed by GitHub
parent fb66ddf161
commit 7f114ef861
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 10 deletions

View File

@ -92,14 +92,6 @@ const Discourse = Ember.Application.extend(FocusEvent, {
}
},
// The classes of buttons to show on a post
@computed
postButtons() {
return Discourse.SiteSettings.post_menu.split("|").map(function(i) {
return i.replace(/\+/, "").capitalize();
});
},
updateContextCount(count) {
this.set("contextCount", count);
},

View File

@ -396,8 +396,7 @@ export default createWidget("post-menu", {
},
menuItems() {
let result = this.siteSettings.post_menu.split("|");
return result;
return this.siteSettings.post_menu.split("|").filter(Boolean);
},
html(attrs, state) {