diff options
author | Joe <rbo@gmx.us> | 2024-01-08 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-08 20:20:20 +0100 |
commit | 28108920b5e4c6ad916b4c974319b14b3be27798 (patch) | |
tree | 2e6c662bedb8162aa1342dae27eaf140104f68d6 /c_ldirs.go | |
parent | cool (diff) | |
download | hardflip-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.go | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -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 -} |