From 959ebbcade63423048320daaa814634c41842a36 Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Wed, 15 Apr 2015 15:56:21 +0200 Subject: Clean up code around commit mentions. --- app/models/note.rb | 8 -------- 1 file changed, 8 deletions(-) (limited to 'app/models/note.rb') diff --git a/app/models/note.rb b/app/models/note.rb index fdab4517df3..8ebeb371352 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -327,14 +327,6 @@ class Note < ActiveRecord::Base current_application_settings.max_attachment_size.megabytes.to_i end - def commit_author - @commit_author ||= - project.team.users.find_by(email: noteable.author_email) || - project.team.users.find_by(name: noteable.author_name) - rescue - nil - end - def cross_reference? note.start_with?(self.class.cross_reference_note_prefix) end -- cgit v1.2.1