From aba641ac44bfb641dd56f0c73ccd5c11689d4c01 Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 15 Jan 2024 20:20:20 +0100 Subject: go --- c_ldirs.go | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'c_ldirs.go') diff --git a/c_ldirs.go b/c_ldirs.go index 2fca939..de081b6 100644 --- a/c_ldirs.go +++ b/c_ldirs.go @@ -146,18 +146,6 @@ func (dir *DirsNode) path() string { return path } -// returns the next directory in line with the same or lower depth -func (dir *DirsNode) get_next_level(folds map[*DirsNode]*ItemsList) *DirsNode { - if dir == nil { - return nil - } - ptr := dir.next - for ptr != nil && ptr.Depth > dir.Depth { - ptr = ptr.next - } - return ptr -} - // returns the number of hosts of the dir func (dir *DirsNode) count_hosts() int { if dir.lhost.head == nil || dir.lhost.last == nil { -- cgit v1.2.3