Commit 8df79f07 authored by Kamil Trzciński's avatar Kamil Trzciński
Browse files

Remove unused method

parent b22732a7
package helpers
import (
"compress/gzip"
"errors"
"fmt"
"io"
......@@ -37,23 +36,6 @@ func (c *ArtifactsUploaderCommand) generateZipArchive(w *io.PipeWriter) {
w.CloseWithError(err)
}
func (c *ArtifactsUploaderCommand) writeGzipFile(w *io.PipeWriter, fileName string, fileInfo os.FileInfo) error {
gz := gzip.NewWriter(w)
gz.Header.Name = fileInfo.Name()
gz.Header.Comment = fileName
gz.Header.ModTime = fileInfo.ModTime()
defer gz.Close()
file, err := os.Open(fileName)
if err != nil {
return err
}
defer file.Close()
_, err = io.Copy(gz, file)
return err
}
func (c *ArtifactsUploaderCommand) generateGzipStream(w *io.PipeWriter) {
err := archives.CreateGzipArchive(w, c.sortedFiles())
w.CloseWithError(err)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment