mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
DEV: removes dead code (#8130)
This commit also refactors the new code which did make this dead code
This commit is contained in:
@ -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) {
|
updateContextCount(count) {
|
||||||
this.set("contextCount", count);
|
this.set("contextCount", count);
|
||||||
},
|
},
|
||||||
|
@ -396,8 +396,7 @@ export default createWidget("post-menu", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
menuItems() {
|
menuItems() {
|
||||||
let result = this.siteSettings.post_menu.split("|");
|
return this.siteSettings.post_menu.split("|").filter(Boolean);
|
||||||
return result;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
html(attrs, state) {
|
html(attrs, state) {
|
||||||
|
Reference in New Issue
Block a user