Remove unused code

This commit is contained in:
Douwe Maan 2017-04-04 17:49:00 -05:00 committed by Luke "Jared" Bennett
parent 63c7801e45
commit 3ff708f723
No known key found for this signature in database
GPG Key ID: 402ED51FB5D306C2
1 changed files with 0 additions and 18 deletions

View File

@ -64,32 +64,14 @@ class NotifyPreview < ActionMailer::Preview
@project ||= Project.find_by_full_path('gitlab-org/gitlab-test')
end
def issue
@issue ||= project.issues.last
end
def merge_request
@merge_request ||= project.merge_requests.find_by(source_branch: 'master', target_branch: 'feature')
end
def commit
@commit ||= project.commit('570e7b2abdd848b95f2f578043fc23bd6f6fd24d')
end
def user
@user ||= User.last
end
def note_body
<<-MD.strip_heredoc
Hello :smiley:
We expect a blank line between:
- The heading ("Adminstrator started...")
- The diff
MD
end
def create_note(params)
Notes::CreateService.new(project, user, params).execute
end