aboutsummaryrefslogtreecommitdiff
path: root/src/range_cache.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-12-18 22:49:10 +0000
committergingerBill <bill@gingerbill.org>2022-12-18 22:49:10 +0000
commitc1f5be24e28c41efbbbe6d116d533b55d48bbf82 (patch)
treec000ca55e7b69ea39a6e3a32714690b350708414 /src/range_cache.cpp
parent6cdec65ca1fd13a4d86d83a6715cbaaff7115cd7 (diff)
Remove dead code in the compiler
Diffstat (limited to 'src/range_cache.cpp')
-rw-r--r--src/range_cache.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/range_cache.cpp b/src/range_cache.cpp
index 1f98c4b9e..fc85e2a2e 100644
--- a/src/range_cache.cpp
+++ b/src/range_cache.cpp
@@ -59,12 +59,12 @@ gb_internal bool range_cache_add_range(RangeCache *c, i64 lo, i64 hi) {
}
-gb_internal bool range_cache_index_exists(RangeCache *c, i64 index) {
- for_array(i, c->ranges) {
- RangeValue v = c->ranges[i];
- if (v.lo <= index && index <= v.hi) {
- return true;
- }
- }
- return false;
-}
+// gb_internal bool range_cache_index_exists(RangeCache *c, i64 index) {
+// for_array(i, c->ranges) {
+// RangeValue v = c->ranges[i];
+// if (v.lo <= index && index <= v.hi) {
+// return true;
+// }
+// }
+// return false;
+// }