all repos — homestead @ 101ecb319b557b168d109364f4c5503781e8ca79

Code for my website

remove unused method NewFile

Alan Pearce
commit

101ecb319b557b168d109364f4c5503781e8ca79

parent

96406af5d2a46d6b19014a560858967d9f8439f1

1 file changed, 0 insertions(+), 14 deletions(-)

jump to
M internal/storage/files/writer.gointernal/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) {