Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
dc31aff3
Commit
dc31aff3
authored
Mar 01, 2016
by
tiagonbotelho
Committed by
Yorick Peterse
Mar 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removes unused methods that I forgot
parent
a14b98f8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
16 deletions
+0
-16
app/models/project.rb
app/models/project.rb
+0
-4
app/models/repository.rb
app/models/repository.rb
+0
-12
No files found.
app/models/project.rb
View file @
dc31aff3
...
...
@@ -957,8 +957,4 @@ class Project < ActiveRecord::Base
def
wiki
@wiki
||=
ProjectWiki
.
new
(
self
,
self
.
owner
)
end
def
main_language
@main_language
=
repository
.
main_language
end
end
app/models/repository.rb
View file @
dc31aff3
...
...
@@ -812,18 +812,6 @@ class Repository
raw_repository
.
ls_files
(
actual_ref
)
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
def
cache
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment