Skip to content
Snippets Groups Projects
Verified Commit d68ae679 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

refactor: remove unused functions

parent 6b27478c
No related branches found
No related tags found
No related merge requests found
...@@ -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
}
...@@ -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
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment