remove unused function

This commit is contained in:
Chris Lu 2018-09-03 16:50:32 -07:00
parent 7ad5a90127
commit 35bafd9861

View file

@ -1,7 +1,6 @@
package util
import (
"bufio"
"errors"
"os"
@ -24,19 +23,6 @@ func TestFolderWritable(folder string) (err error) {
return errors.New("Not writable!")
}
func Readln(r *bufio.Reader) ([]byte, error) {
var (
isPrefix = true
err error
line, ln []byte
)
for isPrefix && err == nil {
line, isPrefix, err = r.ReadLine()
ln = append(ln, line...)
}
return ln, err
}
func GetFileSize(file *os.File) (size int64, err error) {
var fi os.FileInfo
if fi, err = file.Stat(); err == nil {