aboutsummaryrefslogtreecommitdiff
path: root/hotline/transfer.go
diff options
context:
space:
mode:
Diffstat (limited to 'hotline/transfer.go')
-rw-r--r--hotline/transfer.go13
1 files changed, 0 insertions, 13 deletions
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
-}