DEV: drop a deprecated function (#21364)

I've made sure there are no usages in plugins
This commit is contained in:
Andrei Prigorshnev 2023-05-04 15:25:19 +04:00 committed by GitHub
parent 4e0563a8fe
commit c1c017f433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,15 +75,6 @@ const DiscourseRoute = Route.extend({
} }
}, },
// deprecated, use isCurrentUser() instead
isAnotherUsersPage(user) {
if (!this.currentUser) {
return true;
}
return user.username !== this.currentUser.username;
},
isCurrentUser(user) { isCurrentUser(user) {
if (!this.currentUser) { if (!this.currentUser) {
return false; // the current user is anonymous return false; // the current user is anonymous