aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-03-25 21:29:21 +0000
committergingerBill <bill@gingerbill.org>2019-03-25 21:29:21 +0000
commit1fd677b42e33cf0407e204830df656fc1a931df5 (patch)
tree1616b18b106b844975cfa589c7020f4f61a0908f /examples
parent6b18b90222a1a9448f30709cd445a4af282b146f (diff)
Remove *_remove from demo and use built-in versions
Diffstat (limited to 'examples')
-rw-r--r--examples/demo/demo.odin14
1 files changed, 0 insertions, 14 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin
index e5c5830e1..efce9299a 100644
--- a/examples/demo/demo.odin
+++ b/examples/demo/demo.odin
@@ -561,20 +561,6 @@ threading_example :: proc() {
when os.OS == "windows" {
fmt.println("# threading_example");
- unordered_remove :: proc(array: ^$D/[dynamic]$T, index: int, loc := #caller_location) {
- runtime.bounds_check_error_loc(loc, index, len(array));
- n := len(array)-1;
- if index != n {
- array[index] = array[n];
- }
- pop(array);
- }
- ordered_remove :: proc(array: ^$D/[dynamic]$T, index: int, loc := #caller_location) {
- runtime.bounds_check_error_loc(loc, index, len(array));
- copy(array[index:], array[index+1:]);
- pop(array);
- }
-
worker_proc :: proc(t: ^thread.Thread) -> int {
for iteration in 1..5 {
fmt.printf("Thread %d is on iteration %d\n", t.user_index, iteration);