diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2021-08-12 19:00:13 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2021-08-12 11:00:13 -0700 |
| commit | c5d9af5aa4d9fb20316be45ab1b775bcf61bcad5 (patch) | |
| tree | 300f7c6814d41ad12ff5665f3f14f24a54c62e4d /hotline/files.go | |
| parent | 72dd37f1abb2b550aaaac48eac677403d5664797 (diff) | |
More cleanup
Diffstat (limited to 'hotline/files.go')
| -rw-r--r-- | hotline/files.go | 13 |
1 files changed, 1 insertions, 12 deletions
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() -} |