Browse Source

del unused code

tags/v1.21.12.1
yuyuanshifu 4 years ago
parent
commit
d9c16390dd
2 changed files with 0 additions and 12 deletions
  1. +0
    -11
      routers/repo/cloudbrain.go
  2. +0
    -1
      routers/routes/routes.go

+ 0
- 11
routers/repo/cloudbrain.go View File

@@ -311,17 +311,6 @@ func CloudBrainDel(ctx *context.Context) {
ctx.Redirect(setting.AppSubURL + ctx.Repo.RepoLink + "/cloudbrain")
}

func CloudBrainBenchmark(ctx *context.Context) {
var jobID = ctx.Params(":jobid")
_, err := models.GetCloudbrainByJobID(jobID)
if err != nil {
ctx.ServerError("GetCloudbrainByJobID failed", err)
return
}

ctx.Redirect(setting.BenchmarkServerHost)
}

func GetRate(ctx *context.Context) {
var jobID = ctx.Params(":jobid")
job, err := models.GetCloudbrainByJobID(jobID)


+ 0
- 1
routers/routes/routes.go View File

@@ -910,7 +910,6 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Post("/commit_image", reqRepoCloudBrainWriter, bindIgnErr(auth.CommitImageCloudBrainForm{}), repo.CloudBrainCommitImage)
m.Post("/stop", reqRepoCloudBrainWriter, repo.CloudBrainStop)
m.Post("/del", reqRepoCloudBrainWriter, repo.CloudBrainDel)
m.Get("/benchmark", reqRepoCloudBrainWriter, repo.CloudBrainBenchmark)
m.Get("/rate", reqRepoCloudBrainWriter, repo.GetRate)
})
m.Get("/create", reqRepoCloudBrainWriter, repo.CloudBrainNew)


Loading…
Cancel
Save