From f85f3dce12a7c6555f73df203c10ce2e6798e78f Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 16 Jun 2020 12:55:09 +0100 Subject: [PATCH] Revert demo.odin --- examples/demo/demo.odin | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin index ea843dd72..2485ca6f9 100644 --- a/examples/demo/demo.odin +++ b/examples/demo/demo.odin @@ -7,8 +7,6 @@ import "core:thread" import "core:time" import "core:reflect" import "core:runtime" -import "core:container" -import "core:hash" import "intrinsics" @@ -1980,25 +1978,7 @@ pure_procedures :: proc() { } main :: proc() { - bloom := &container.Bloom_Filter{}; - - container.bloom_filter_init(bloom, 16); - defer container.bloom_filter_destroy(bloom); - container.bloom_filter_add_hash_proc(bloom, hash.djb2); - container.bloom_filter_add_hash_proc(bloom, hash.jenkins); - container.bloom_filter_add_hash_proc(bloom, hash.sdbm); - container.bloom_filter_add_hash_proc(bloom, hash.fnv32a); - - fmt.printf("Should be false: %v\n", container.bloom_filter_test_string(bloom, "hello world")); - container.bloom_filter_add_string(bloom, "hello world"); - fmt.printf("Should be true: %v\n", container.bloom_filter_test_string(bloom, "hello world")); - fmt.printf("Should probably be false: %v\n", container.bloom_filter_test_string(bloom, "world hello")); - fmt.println(bloom.bits); - - - fmt.println("Here"); - - when false { + when true { the_basics(); control_flow(); named_proc_return_parameters();