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
25a443d6
Commit
25a443d6
authored
Sep 04, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'remove-unused-code' into 'master'
Remove unused code See merge request !13657
parents
dabce2c5
6be89f21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
app/models/project.rb
app/models/project.rb
+0
-1
app/models/user.rb
app/models/user.rb
+0
-9
No files found.
app/models/project.rb
View file @
25a443d6
...
...
@@ -68,7 +68,6 @@ class Project < ActiveRecord::Base
acts_as_taggable
attr_accessor
:new_default_branch
attr_accessor
:old_path_with_namespace
attr_accessor
:template_name
attr_writer
:pipeline_status
...
...
app/models/user.rb
View file @
25a443d6
...
...
@@ -644,11 +644,6 @@ class User < ActiveRecord::Base
@personal_projects_count
||=
personal_projects
.
count
end
def
projects_limit_percent
return
100
if
projects_limit
.
zero?
(
personal_projects
.
count
.
to_f
/
projects_limit
)
*
100
end
def
recent_push
(
project_ids
=
nil
)
# Get push events not earlier than 2 hours ago
events
=
recent_events
.
code_push
.
where
(
"created_at > ?"
,
Time
.
now
-
2
.
hours
)
...
...
@@ -666,10 +661,6 @@ class User < ActiveRecord::Base
end
end
def
projects_sorted_by_activity
authorized_projects
.
sorted_by_activity
end
def
several_namespaces?
owned_groups
.
any?
||
masters_groups
.
any?
end
...
...
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