mirror of
https://github.com/restic/restic.git
synced 2026-09-16 09:17:57 +00:00
data: remove unused Nodes type
This commit is contained in:
@@ -114,13 +114,6 @@ type Node struct {
|
|||||||
Path string `json:"-"`
|
Path string `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Nodes is a slice of nodes that can be sorted.
|
|
||||||
type Nodes []*Node
|
|
||||||
|
|
||||||
func (n Nodes) Len() int { return len(n) }
|
|
||||||
func (n Nodes) Less(i, j int) bool { return n[i].Name < n[j].Name }
|
|
||||||
func (n Nodes) Swap(i, j int) { n[i], n[j] = n[j], n[i] }
|
|
||||||
|
|
||||||
func (node Node) String() string {
|
func (node Node) String() string {
|
||||||
var mode os.FileMode
|
var mode os.FileMode
|
||||||
switch node.Type {
|
switch node.Type {
|
||||||
|
|||||||
Reference in New Issue
Block a user