summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/invidious/helpers/handlers.cr13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/invidious/helpers/handlers.cr b/src/invidious/helpers/handlers.cr
index 949eb335..f2240691 100644
--- a/src/invidious/helpers/handlers.cr
+++ b/src/invidious/helpers/handlers.cr
@@ -237,16 +237,3 @@ class HTTP::Client
response
end
end
-
-struct Crystal::ThreadLocalValue(T)
- @values = Hash(Thread, T).new
-
- def get(&block : -> T)
- th = Thread.current
- if !@values[th]?
- @values[th] = yield
- else
- @values[th]
- end
- end
-end