aboutsummaryrefslogtreecommitdiffstats
path: root/c_init.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-05 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-05 20:20:20 +0100
commit6b52e3051cd00fa39e8a7504e41a931cc874cb0e (patch)
treede1079d3ed60fcbd3fbd3de8ff1535e9455d7c4d /c_init.go
parentturns out we need litems in the end (diff)
downloadhardflip-6b52e3051cd00fa39e8a7504e41a931cc874cb0e.tar.gz
hardflip-6b52e3051cd00fa39e8a7504e41a931cc874cb0e.tar.bz2
hardflip-6b52e3051cd00fa39e8a7504e41a931cc874cb0e.tar.xz
hardflip-6b52e3051cd00fa39e8a7504e41a931cc874cb0e.tar.zst
hardflip-6b52e3051cd00fa39e8a7504e41a931cc874cb0e.zip
fuck all of this hosts only
Diffstat (limited to '')
-rw-r--r--c_init.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/c_init.go b/c_init.go
index 9c189c1..770bd8c 100644
--- a/c_init.go
+++ b/c_init.go
@@ -62,9 +62,6 @@ type HardOpts struct {
FoldAll bool
}
-
-var global_id int
-
// this function recurses into the specified root directory in order to load
// every yaml file into memory
func c_recurse_data_dir(dir, root string, opts HardOpts,
@@ -87,7 +84,6 @@ func c_recurse_data_dir(dir, root string, opts HardOpts,
// item_node.Dirs = &dir_node
// item_node.Host = nil
ldirs.add_back(&dir_node)
- global_id++
// litems.add_back(&item_node)
for _, file := range files {
filename := file.Name()
@@ -106,7 +102,6 @@ func c_recurse_data_dir(dir, root string, opts HardOpts,
host_node.Filename = filename
// host_node.Parent = &dir_node
dir_node.lhost.add_back(host_node)
- global_id++
}
}
}