From c1c017f4333ad1aaec509c39bdc313420ea4e5a7 Mon Sep 17 00:00:00 2001 From: Andrei Prigorshnev Date: Thu, 4 May 2023 15:25:19 +0400 Subject: [PATCH] DEV: drop a deprecated function (#21364) I've made sure there are no usages in plugins --- app/assets/javascripts/discourse/app/routes/discourse.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/assets/javascripts/discourse/app/routes/discourse.js b/app/assets/javascripts/discourse/app/routes/discourse.js index 9b2f976c5c7..da07704a23c 100644 --- a/app/assets/javascripts/discourse/app/routes/discourse.js +++ b/app/assets/javascripts/discourse/app/routes/discourse.js @@ -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) { if (!this.currentUser) { return false; // the current user is anonymous