aboutsummaryrefslogtreecommitdiffstats
path: root/c_litems.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-10 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-10 20:20:20 +0100
commit57d51f7de31da84b0aeece71d07fdabc25019968 (patch)
treedfc2134697009cb8cd4d7edb3bc1ed29877036ae /c_litems.go
parentfolding ye (diff)
downloadhardflip-57d51f7de31da84b0aeece71d07fdabc25019968.tar.gz
hardflip-57d51f7de31da84b0aeece71d07fdabc25019968.tar.bz2
hardflip-57d51f7de31da84b0aeece71d07fdabc25019968.tar.xz
hardflip-57d51f7de31da84b0aeece71d07fdabc25019968.tar.zst
hardflip-57d51f7de31da84b0aeece71d07fdabc25019968.zip
cleanup
Diffstat (limited to 'c_litems.go')
-rw-r--r--c_litems.go31
1 files changed, 1 insertions, 30 deletions
diff --git a/c_litems.go b/c_litems.go
index ce26648..76fd116 100644
--- a/c_litems.go
+++ b/c_litems.go
@@ -43,7 +43,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* hardflip: src/c_litems.go
- * Wed Jan 10 11:30:12 2024
+ * Wed Jan 10 16:36:44 2024
* Joe
*
* the dir and hosts linked list
@@ -164,34 +164,5 @@ func (litems *ItemsList) inc(jump int) {
new_item = new_item.prev
}
}
- // for jump > 0 &&
- // new_item.folded_parents() == true &&
- // new_item.next != nil {
- // new_item = new_item.next
- // }
- // for jump < 0 &&
- // new_item.folded_parents() == true &&
- // new_item.prev != nil {
- // new_item = new_item.prev
- // }
- // if new_item == litems.last && new_item.folded_parents() == true {
- // return
- // }
litems.curr = new_item
}
-
-// func (item *ItemsNode) folded_parents() bool {
-// var ptr *DirsNode
-//
-// if item.is_dir() == false {
-// ptr = item.Host.Parent
-// } else {
-// ptr = item.Dirs.Parent
-// }
-// for ; ptr.Parent != nil; ptr = ptr.Parent {
-// if ptr.Folded == true {
-// return true
-// }
-// }
-// return false
-// }