remove unused method NewFile
1 file changed, 0 insertions(+), 14 deletions(-)
M internal/storage/files/writer.go → internal/storage/files/writer.go
@@ -5,11 +5,9 @@ "compress/gzip" "io" "os" "path/filepath" - "time" "go.alanpearce.eu/website/internal/buffer" "go.alanpearce.eu/website/internal/multibuf" - "go.alanpearce.eu/website/internal/storage" "go.alanpearce.eu/x/log" "github.com/andybalholm/brotli"@@ -38,18 +36,6 @@ outputDirectory: outputDirectory, options: opts, log: logger, }, nil -} - -func (f *Files) NewFile(path string) *storage.File { - return &storage.File{ - Path: path, - ContentType: "", - LastModified: time.Time{}, - Etag: "", - Encodings: map[string]io.ReadSeeker{ - "identity": nil, - }, - } } func (f *Files) OpenRead(filename string) (io.ReadCloser, error) {