removed unused brotli functions
sophuwu sophie@skisiel.com
Fri, 10 Jan 2025 21:55:50 +0100
M
cli.go
→
cli.go
@@ -3,7 +3,6 @@
import ( "bytes" "fmt" - "github.com/andybalholm/brotli" "golang.org/x/crypto/ssh/terminal" "golang.org/x/net/html" "io"@@ -62,14 +61,6 @@ if addr.Name != "" {
return addr.Name } return addr.Address -} - -func UnBr(buf *bytes.Buffer) error { - data := buf.Bytes() - buf.Reset() - reader := brotli.NewReader(bytes.NewReader(data)) - _, err := buf.ReadFrom(reader) - return err } func node(w io.Writer, n *html.Node) {
M
go.sum
→
go.sum
@@ -1,5 +1,3 @@
-github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1U3M= -github.com/andybalholm/brotli v1.1.0/go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= github.com/glebarez/go-sqlite v1.22.0 h1:uAcMJhaA6r3LHMTFgP0SifzgXg46yJkgxqyuyec+ruQ=
M
parse.go
→
parse.go
@@ -5,7 +5,6 @@ "bytes"
"crypto/sha1" _ "encoding/json" "fmt" - "github.com/andybalholm/brotli" "mime" "net/mail" "os"@@ -14,17 +13,6 @@ "time"
) const TimeFormat = "2006-01-02 15:04:05 -0700" - -func Brotli(buf *bytes.Buffer) error { - data := buf.Bytes() - buf.Reset() - writer := brotli.NewWriterLevel(buf, brotli.BestCompression) - _, err := writer.Write(data) - if err != nil { - return err - } - return writer.Close() -} func SaveEmail(em EmailMeta, files FileList) error { path := filepath.Join(SAVEPATH, em.Id)