aboutsummaryrefslogtreecommitdiffstats
path: root/c_ldirs.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-08 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-08 20:20:20 +0100
commit28108920b5e4c6ad916b4c974319b14b3be27798 (patch)
tree2e6c662bedb8162aa1342dae27eaf140104f68d6 /c_ldirs.go
parentcool (diff)
downloadhardflip-28108920b5e4c6ad916b4c974319b14b3be27798.tar.gz
hardflip-28108920b5e4c6ad916b4c974319b14b3be27798.tar.bz2
hardflip-28108920b5e4c6ad916b4c974319b14b3be27798.tar.xz
hardflip-28108920b5e4c6ad916b4c974319b14b3be27798.tar.zst
hardflip-28108920b5e4c6ad916b4c974319b14b3be27798.zip
factor
Diffstat (limited to '')
-rw-r--r--c_ldirs.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/c_ldirs.go b/c_ldirs.go
index aff93e4..af24c28 100644
--- a/c_ldirs.go
+++ b/c_ldirs.go
@@ -109,15 +109,3 @@ func (ldirs *DirsList) path(node *DirsNode) string {
}
return path
}
-
-func (ldirs *DirsList) count() (int, int) {
- curr := ldirs.head
- var count_dirs int
- var count_hosts int
-
- for count_dirs = 0; curr != nil; count_dirs++ {
- count_hosts += curr.lhost.count()
- curr = curr.next
- }
- return count_dirs, count_hosts
-}