about summary refs log tree commit diff
path: root/frontend/frontend.go
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/frontend.go')
-rw-r--r--frontend/frontend.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/frontend/frontend.go b/frontend/frontend.go
index 46cd59f78b28..1f6e74452951 100644
--- a/frontend/frontend.go
+++ b/frontend/frontend.go
@@ -1,7 +1,6 @@
 package frontend
 
 import (
-	"fmt"
 	"io/ioutil"
 	"net/http"
 
@@ -61,23 +60,10 @@ func MakeFrontend(runner *submitqueue.Runner) *Frontend {
 	router.SetHTMLTemplate(tmpl)
 
 	router.GET("/submit-queue.json", func(c *gin.Context) {
-
-		// FIXME: do this periodically
-		err := submitQueue.UpdateHEAD()
-		if err != nil {
-			c.AbortWithError(http.StatusBadGateway, fmt.Errorf("unable to update HEAD"))
-		}
 		c.JSON(http.StatusOK, submitQueue)
 	})
 
 	router.GET("/", func(c *gin.Context) {
-		// FIXME: do this periodically
-
-		err := submitQueue.UpdateHEAD()
-		if err != nil {
-			c.AbortWithError(http.StatusBadGateway, fmt.Errorf("unable to update HEAD"))
-		}
-
 		c.HTML(http.StatusOK, "submit-queue.tmpl.html", gin.H{
 			"series":      submitQueue.Series,
 			"projectName": submitQueue.ProjectName,