Remove unused methods

This commit is contained in:
Dmitriy Zaporozhets 2013-01-05 13:11:15 +02:00
parent e3d7ce2cc4
commit 5a214ee6f1
10 changed files with 9 additions and 62 deletions

View file

@ -83,10 +83,6 @@ class Project < ActiveRecord::Base
scope :joined, ->(user) { where("namespace_id != ?", user.namespace_id) }
class << self
def authorized_for user
raise "DERECATED"
end
def active
joins(:issues, :notes, :merge_requests).order("issues.created_at, notes.created_at, merge_requests.created_at DESC")
end
@ -215,14 +211,6 @@ class Project < ActiveRecord::Base
notes.new(commit_id: commit.id, noteable_type: "Commit")
end
def commit_notes(commit)
notes.where(commit_id: commit.id, noteable_type: "Commit", line_code: nil)
end
def commit_line_notes(commit)
notes.where(commit_id: commit.id, noteable_type: "Commit").where("line_code IS NOT NULL")
end
def last_activity
last_event
end