Commit dc31aff3 authored by tiagonbotelho's avatar tiagonbotelho Committed by Yorick Peterse

removes unused methods that I forgot

parent a14b98f8
...@@ -957,8 +957,4 @@ class Project < ActiveRecord::Base ...@@ -957,8 +957,4 @@ class Project < ActiveRecord::Base
def wiki def wiki
@wiki ||= ProjectWiki.new(self, self.owner) @wiki ||= ProjectWiki.new(self, self.owner)
end end
def main_language
@main_language = repository.main_language
end
end end
...@@ -812,18 +812,6 @@ class Repository ...@@ -812,18 +812,6 @@ class Repository
raw_repository.ls_files(actual_ref) raw_repository.ls_files(actual_ref)
end end
def main_language
return @main_language unless @main_language.nil?
unless empty?
@main_language = cache.fetch(:main_language) do
Linguist::Repository.new(
rugged,
rugged.head.target_id).language
end
end
end
private private
def cache def cache
......
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