summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobb Kidd <robb@thekidds.org>2012-06-20 13:18:29 -0400
committerRobb Kidd <robb@thekidds.org>2012-06-20 14:09:46 -0400
commiteba61c111d175f298d7c6541f47a6dcdf3e55b7d (patch)
tree83c6e9b47448a82e2621c99b6f82ba5264395972
parent88964132edaec721e256449579c032ca731781bc (diff)
downloadgitlab-ce-eba61c111d175f298d7c6541f47a6dcdf3e55b7d.tar.gz
Remove upvotes method from Issue.
Must have snuck in during one of the multiple rebases while observers were being refactored.
-rw-r--r--app/models/issue.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 2b4b311da78..844d418b1e0 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -56,11 +56,6 @@ class Issue < ActiveRecord::Base
today? && created_at == updated_at
end
- # Return the number of +1 comments (upvotes)
- def upvotes
- notes.select(&:upvote?).size
- end
-
def is_being_reassigned?
assignee_id_changed?
end