about summary refs log tree commit diff
path: root/frontend
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2019-11-25T16·42+0100
committerFlorian Klink <flokli@flokli.de>2019-11-25T16·42+0100
commitad27d963f2d9bbe7876077b849af2d8bc2f9959d (patch)
treed63a4a9fefb628f783c35fbf505a91146a32e091 /frontend
parent266c27d1d01d5c0dd8239f7b57c7db2603939cd8 (diff)
submitqueue: remove updateHEAD function
This is already done during the Run() function
Diffstat (limited to 'frontend')
-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,