diff options
author | Joe <rbo@gmx.us> | 2024-01-05 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-01-05 20:20:20 +0100 |
commit | 4b06549cd72411db72ae231e5ad6b1ae16ca0fbf (patch) | |
tree | 7ec03fae7cb66b388d3939658523e8be603c6387 /c_litems.go | |
parent | todolist (diff) | |
download | hardflip-4b06549cd72411db72ae231e5ad6b1ae16ca0fbf.tar.gz hardflip-4b06549cd72411db72ae231e5ad6b1ae16ca0fbf.tar.bz2 hardflip-4b06549cd72411db72ae231e5ad6b1ae16ca0fbf.tar.xz hardflip-4b06549cd72411db72ae231e5ad6b1ae16ca0fbf.tar.zst hardflip-4b06549cd72411db72ae231e5ad6b1ae16ca0fbf.zip |
cool
Diffstat (limited to 'c_litems.go')
-rw-r--r-- | c_litems.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/c_litems.go b/c_litems.go index 7fa93c3..44831ff 100644 --- a/c_litems.go +++ b/c_litems.go @@ -64,24 +64,6 @@ type ItemsList struct { last *ItemsNode } -func (litems *ItemsList) is_dir(id int) bool { - curr := litems.head - - if curr == nil { - return false - } - for curr.next != nil && curr.ID != id { - curr = curr.next - } - if curr.ID != id { - return false - } - if curr.Dirs != nil { - return true - } - return false -} - func (litems *ItemsList) add_back(node *ItemsNode) { if litems.head == nil { litems.head = node |