Skip to content

Commit

Permalink
remove dead comment
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Oct 24, 2023
1 parent 94c8954 commit 3b10a14
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/core/CCVec.ml
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,6 @@ let clear_and_reset v =
v.size <- 0;
v.vec <- [||]

(* TODO*)
(*
let v = create() in
let a = Weak.create 1 in
push v ("hello"^"world");
Weak.set a 0 (Some (get v 0));
Gc.full_major(); Gc.compact();
assert_bool "is alive" (Weak.check a 0);
Gc.full_major(); Gc.compact();
assert_equal None (Weak.get a 0);
*)

let[@inline] is_empty v = v.size = 0

let[@inline] push_unsafe_ v x =
Expand Down

0 comments on commit 3b10a14

Please sign in to comment.