Commit b9bf23e0 authored by Timothy Andrew's avatar Timothy Andrew

Remove extraneous code that was previously added for performance.

parent edb38d69
...@@ -29,8 +29,6 @@ module Issuable ...@@ -29,8 +29,6 @@ module Issuable
end end
end end
has_many :system_notes, -> { merge(Note.system) }, class_name: Note, as: :noteable, inverse_of: :noteable
has_many :label_links, as: :target, dependent: :destroy has_many :label_links, as: :target, dependent: :destroy
has_many :labels, through: :label_links has_many :labels, through: :label_links
has_many :todos, as: :target, dependent: :destroy has_many :todos, as: :target, dependent: :destroy
......
...@@ -201,8 +201,8 @@ class Issue < ActiveRecord::Base ...@@ -201,8 +201,8 @@ class Issue < ActiveRecord::Base
# From all notes on this issue, we'll select the system notes about linked # From all notes on this issue, we'll select the system notes about linked
# merge requests. Of those, the MRs closing `self` are returned. # merge requests. Of those, the MRs closing `self` are returned.
def closed_by_merge_requests(current_user = nil, check_if_open: true) def closed_by_merge_requests(current_user = nil)
return [] if !open? && check_if_open return [] if !open?
ext = all_references(current_user) ext = all_references(current_user)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment