]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/files.go
More cleanup
[rbdr/mobius] / hotline / files.go
index bccab35868e0277ce50fad2c0ab25f2898951349..0c233348c0a093af58383a590725ba76648efa71 100644 (file)
@@ -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()
-}