Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tank
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
tank
Commits
d68ae679
Verified
Commit
d68ae679
authored
1 month ago
by
Ernesto Rico Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
refactor: remove unused functions
parent
6b27478c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/v1/utils.go
+0
-10
0 additions, 10 deletions
api/v1/utils.go
importer/importer.go
+0
-4
0 additions, 4 deletions
importer/importer.go
with
0 additions
and
14 deletions
api/v1/utils.go
+
0
−
10
View file @
d68ae679
...
@@ -156,13 +156,3 @@ func authorizeRequestForShow(c *gin.Context, showID uint64) (bool, *auth.Session
...
@@ -156,13 +156,3 @@ func authorizeRequestForShow(c *gin.Context, showID uint64) (bool, *auth.Session
c
.
JSON
(
http
.
StatusForbidden
,
ErrorResponse
{
Error
:
"you are not allowed to access show: "
+
strconv
.
FormatUint
(
showID
,
10
)})
c
.
JSON
(
http
.
StatusForbidden
,
ErrorResponse
{
Error
:
"you are not allowed to access show: "
+
strconv
.
FormatUint
(
showID
,
10
)})
return
false
,
s
return
false
,
s
}
}
func
authorizeRequestPrivilegedOrEntitled
(
c
*
gin
.
Context
)
(
bool
,
*
auth
.
Session
)
{
s
:=
getAuthSession
(
c
.
Request
)
if
s
.
Privileged
||
s
.
Entitled
{
return
true
,
s
}
return
false
,
nil
}
This diff is collapsed.
Click to expand it.
importer/importer.go
+
0
−
4
View file @
d68ae679
...
@@ -45,10 +45,6 @@ type Importer struct {
...
@@ -45,10 +45,6 @@ type Importer struct {
httpC
*
http
.
Client
httpC
*
http
.
Client
}
}
func
(
im
*
Importer
)
ListJobs
(
showID
uint64
,
offset
,
limit
int
)
([]
*
Job
,
error
)
{
return
im
.
jobs
.
ListJobs
(
showID
,
offset
,
limit
),
nil
// for now error is always nil but this might change later
}
func
(
im
*
Importer
)
ListJobsForShows
(
showIDs
[]
uint64
,
offset
int
,
limit
int
)
([]
*
Job
,
error
)
{
func
(
im
*
Importer
)
ListJobsForShows
(
showIDs
[]
uint64
,
offset
int
,
limit
int
)
([]
*
Job
,
error
)
{
return
im
.
jobs
.
ListJobsForShows
(
showIDs
,
offset
,
limit
),
nil
// for now error is always nil but this might change later
return
im
.
jobs
.
ListJobsForShows
(
showIDs
,
offset
,
limit
),
nil
// for now error is always nil but this might change later
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment