DEV: drop unused method (#15190)

There are no usages in Core and plugins.
The last usage was removed in https://github.com/discourse/discourse/pull/9369.
This commit is contained in:
Andrei Prigorshnev 2021-12-06 02:37:54 +01:00 committed by GitHub
parent 28bf9599f5
commit ce074d118e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,6 @@
import RawHtml from "discourse/widgets/raw-html";
import { iconHTML } from "discourse-common/lib/icon-library";
import QuickAccessPanel from "discourse/widgets/quick-access-panel";
import UserAction from "discourse/models/user-action";
import { ajax } from "discourse/lib/ajax";
import { createWidget, createWidgetFrom } from "discourse/widgets/widget";
import { h } from "virtual-dom";
@ -72,14 +71,4 @@ createWidgetFrom(QuickAccessPanel, "quick-access-bookmarks", {
({ user_bookmark_list }) => user_bookmark_list.bookmarks
);
},
loadUserActivityBookmarks() {
return ajax("/user_actions.json", {
data: {
username: this.currentUser.username,
filter: UserAction.TYPES.bookmarks,
no_results_help_key: "user_activity.no_bookmarks",
},
}).then(({ user_actions }) => user_actions);
},
});