From c5d9af5aa4d9fb20316be45ab1b775bcf61bcad5 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Thu, 12 Aug 2021 19:00:13 -0700 Subject: More cleanup --- hotline/files.go | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'hotline/files.go') diff --git a/hotline/files.go b/hotline/files.go index bccab35..0c23334 100644 --- a/hotline/files.go +++ b/hotline/files.go @@ -43,9 +43,7 @@ func fileCreatorFromFilename(fn string) string { return code } -func getFileNameList(filePath string) ([]Field, error) { - var fields []Field - +func getFileNameList(filePath string) (fields []Field, err error) { files, err := ioutil.ReadDir(filePath) if err != nil { return fields, nil @@ -154,12 +152,3 @@ func EncodeFilePath(filePath string) []byte { return bytes } - -func ReadFilePath(filePathFieldData []byte) string { - var fp FilePath - err := fp.UnmarshalBinary(filePathFieldData) - if err != nil { - // TODO - } - return fp.String() -} -- cgit