From fc06cfa90ba44094cbb461bb65431c92c3d5fd04 Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Thu, 31 Oct 2019 08:59:32 +1100 Subject: [PATCH] DEV: remove unused method confirmed not used in all_the_plugins not used in core --- app/models/user.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 9b27e1665bf..0249ca5d0fa 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -595,11 +595,6 @@ class User < ActiveRecord::Base MessageBus.publish("/notification/#{id}", payload, user_ids: [id]) end - # A selection of people to autocomplete on @mention - def self.mentionable_usernames - User.select(:username).order('last_posted_at desc').limit(20) - end - def password=(password) # special case for passwordless accounts unless password.blank?