aboutsummaryrefslogtreecommitdiff
path: root/array.h
diff options
context:
space:
mode:
authorRandy Palamar <randy@rnpnr.xyz>2025-12-17 16:29:06 -0700
committerRandy Palamar <randy@rnpnr.xyz>2026-01-06 15:38:58 -0700
commit65d0847af82ba6189817dfab4485de111e299634 (patch)
treed4e0d5a3a80a081785445d6d5e5c0adcc7ac3bc2 /array.h
parent9f133c83126c77b05b18e3b3def8a9394d6b42f9 (diff)
downloadvis-65d0847af82ba6189817dfab4485de111e299634.tar.gz
vis-65d0847af82ba6189817dfab4485de111e299634.tar.xz
vis-marks: greatly simplify jumplist management
As far as I could tell from the code this was supposed to be a fixed size LRU cache of sets of selection regions. The structure had a maximum size member but it was never set or used. Furthermore there was some very complicated management of 2 parallel sets of regions. Instead of that mess just treat the cache as a circular buffer. Note that this is really not that useful at the moment. While the selection regions are saved and restored the editor mode is not. Therefore the selection is visible but not in any way usable. That will be fixed in the next commit.
Diffstat (limited to 'array.h')
-rw-r--r--array.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/array.h b/array.h
index 9deac45..67fe7a5 100644
--- a/array.h
+++ b/array.h
@@ -101,26 +101,5 @@ VIS_INTERNAL bool array_resize(Array*, size_t length);
* Sort array, the comparision function works as for `qsort(3)`.
*/
VIS_INTERNAL void array_sort(Array*, int (*compar)(const void*, const void*));
-/**
- * Push item onto the top of the stack.
- * @rst
- * .. note:: Is equivalent to ``array_add(arr, item)``.
- * @endrst
- */
-VIS_INTERNAL bool array_push(Array*, void *item);
-/**
- * Get and remove item at the top of the stack.
- * @rst
- * .. warning:: The same ownership rules as for ``array_get`` apply.
- * @endrst
- */
-VIS_INTERNAL void *array_pop(Array*);
-/**
- * Get item at the top of the stack without removing it.
- * @rst
- * .. warning:: The same ownership rules as for ``array_get`` apply.
- * @endrst
- */
-VIS_INTERNAL void *array_peek(const Array*);
#endif