aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2026-02-02 11:39:57 +0000
committergingerBill <gingerBill@users.noreply.github.com>2026-02-02 11:39:57 +0000
commit2bbedda61c91eca763b4ef07e889c12372c66560 (patch)
treeab5bc28feb9a79b0395120caf3e351c8f332ca4f /src
parent041ebdd8f6b9cc3c2274ae9284e51d0e70602e00 (diff)
Remove unneeded mutex in `hash_exact_value`
Diffstat (limited to 'src')
-rw-r--r--src/exact_value.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/exact_value.cpp b/src/exact_value.cpp
index 0f425e043..fa99ed3fe 100644
--- a/src/exact_value.cpp
+++ b/src/exact_value.cpp
@@ -1,8 +1,6 @@
#include <math.h>
#include <stdlib.h>
-gb_global BlockingMutex hash_exact_value_mutex;
-
struct Ast;
struct HashKey;
struct Type;
@@ -54,9 +52,6 @@ struct ExactValue {
gb_global ExactValue const empty_exact_value = {};
gb_internal uintptr hash_exact_value(ExactValue v) {
- mutex_lock(&hash_exact_value_mutex);
- defer (mutex_unlock(&hash_exact_value_mutex));
-
uintptr res = 0;
switch (v.kind) {