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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
c0d3c732
Commit
c0d3c732
authored
Oct 01, 2021
by
drew cimino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some dead code
parent
fe980078
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
app/models/ci/build.rb
app/models/ci/build.rb
+0
-5
No files found.
app/models/ci/build.rb
View file @
c0d3c732
...
@@ -194,7 +194,6 @@ module Ci
...
@@ -194,7 +194,6 @@ module Ci
add_authentication_token_field
:token
,
encrypted: :required
add_authentication_token_field
:token
,
encrypted: :required
before_save
:ensure_token
before_save
:ensure_token
before_destroy
{
unscoped_project
}
after_save
:stick_build_if_status_changed
after_save
:stick_build_if_status_changed
...
@@ -1156,10 +1155,6 @@ module Ci
...
@@ -1156,10 +1155,6 @@ module Ci
self
.
update
(
erased_by:
user
,
erased_at:
Time
.
current
,
artifacts_expire_at:
nil
)
self
.
update
(
erased_by:
user
,
erased_at:
Time
.
current
,
artifacts_expire_at:
nil
)
end
end
def
unscoped_project
@unscoped_project
||=
Project
.
unscoped
.
find_by
(
id:
project_id
)
end
def
environment_url
def
environment_url
options
&
.
dig
(
:environment
,
:url
)
||
persisted_environment
&
.
external_url
options
&
.
dig
(
:environment
,
:url
)
||
persisted_environment
&
.
external_url
end
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