X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/9cf66aeafbcbb9237fedc2efc97cc2856eb60f7f..95159e5585762c06c654945070ba54262b7dcec9:/hotline/transfer.go?ds=sidebyside diff --git a/hotline/transfer.go b/hotline/transfer.go index 543b00c..1257f8a 100644 --- a/hotline/transfer.go +++ b/hotline/transfer.go @@ -5,8 +5,6 @@ import ( "encoding/binary" "errors" "io" - "os" - "path/filepath" ) type transfer struct { @@ -57,14 +55,3 @@ func receiveFile(r io.Reader, targetFile, resForkFile, infoFork, counterWriter i } return nil } - -// TODO: read the banner once on startup instead of once per banner fetch -func (s *Server) bannerDownload(w io.Writer) error { - bannerBytes, err := os.ReadFile(filepath.Join(s.ConfigDir, s.Config.BannerFile)) - if err != nil { - return err - } - _, err = w.Write(bannerBytes) - - return err -}