build: remove unused package cmd/serve/http/data

This was superseded by lib/http/template.go
This commit is contained in:
Nick Craig-Wood 2023-08-02 05:52:19 +01:00
parent 89196cb353
commit 3f3c5f3ff4
5 changed files with 2 additions and 700 deletions

View file

@ -10,14 +10,13 @@ import (
"testing"
"time"
libhttp "github.com/rclone/rclone/lib/http"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/rclone/rclone/cmd/serve/http/data"
)
func GetTemplate(t *testing.T) *template.Template {
htmlTemplate, err := data.GetTemplate("../../../cmd/serve/http/testdata/golden/testindex.html")
htmlTemplate, err := libhttp.GetTemplate("../../../cmd/serve/http/testdata/golden/testindex.html")
require.NoError(t, err)
return htmlTemplate
}