mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
remove unused function
This commit is contained in:
parent
7ad5a90127
commit
35bafd9861
|
@ -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…
Reference in a new issue