Remove unneeded map.

This commit is contained in:
Blallo 2019-05-16 20:59:19 +02:00
parent 364743f967
commit 769a59c713
No known key found for this signature in database
GPG key ID: 0CBE577C9B72DC3F

View file

@ -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