Browse Source

Remove unneeded map.

Blallo 5 years ago
parent
commit
769a59c713
1 changed files with 2 additions and 13 deletions
  1. 2 13
      sizer/main.go

+ 2 - 13
sizer/main.go

@@ -24,17 +24,6 @@ const (
 	SocketType = iota
 )
 
-// FileTypes is a map containing the above defined types
-var FileTypes = map[string]int{
-	"file": FileType,
-	"dir":  DirType,
-	"slnk": SymLinkType,
-	"hlnk": HardLinkType,
-	"char": CharDevType,
-	"pipe": NamedPipeType,
-	"sock": SocketType,
-}
-
 // INode is an entry in the filesystem. It can be:
 //   - a file
 //   - a directory
@@ -69,11 +58,11 @@ func (il *INodeList) Append(node *INode) {
 }
 
 // INodeChan is a channel global to the sizer package that is used
-// to funnel the retrieved sizez and infos on the inodes.
+// to funnel the retrieved sizes and infos on the inodes.
 var INodeChan chan *INode
 
 // ErrNotIdenfiedType is the error returned when the a classifier does not
-// recognize the INode type as one present in FileTypes.
+// recognize the INode type.
 var ErrNotIdenfiedType = errors.New("inode not identified")
 
 // NewINode returns a new *INode with kind, size and path