Browse Source

remove unused function

pull/729/head
Chris Lu 6 years ago
parent
commit
35bafd9861
  1. 14
      weed/util/file_util.go

14
weed/util/file_util.go

@ -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 {

Loading…
Cancel
Save