summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 34787f5fa3c..137fa42a9b9 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -953,14 +953,4 @@ class Project < ActiveRecord::Base
def wiki
@wiki ||= ProjectWiki.new(self, self.owner)
end
-
- def main_language
- language = read_attribute(:main_language)
-
- return language if language
-
- update_attributes(main_language: repository.main_language)
-
- read_attribute(:main_language)
- end
end