Skip to content

Commit 813cd84

Browse files
committed
DEV: Remove unused modifyClass
The controller customizations are unused since 8996279
1 parent 2f3eff4 commit 813cd84

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

assets/javascripts/discourse/initializers/enable-user-notes.js

-22
Original file line numberDiff line numberDiff line change
@@ -38,28 +38,6 @@ export default {
3838
this.model.set("user_custom_fields", cfs);
3939
});
4040

41-
api.modifyClass("controller:user", {
42-
pluginId: PLUGIN_ID,
43-
userNotesCount: null,
44-
45-
@on("init")
46-
@observes("model")
47-
_modelChanged: function () {
48-
this.set(
49-
"userNotesCount",
50-
this.get("model.custom_fields.user_notes_count") || 0
51-
);
52-
},
53-
54-
actions: {
55-
showUserNotes() {
56-
showUserNotes(store, this.model.id, (count) =>
57-
this.set("userNotesCount", count)
58-
);
59-
},
60-
},
61-
});
62-
6341
const mobileView = api.container.lookup("service:site").mobileView;
6442
const loc = mobileView ? "before" : "after";
6543
api.decorateWidget(`poster-name:${loc}`, (dec) => {

0 commit comments

Comments
 (0)