aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_smacks.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-12-01 15:27:55 +0100
committerKim Alvefur <zash@zash.se>2021-12-01 15:27:55 +0100
commit129520cd56b21f9b3b7cd00bcc7eba5a1310b24c (patch)
treebc53281cf2c87c20b577da53d1eb382f30d8b383 /plugins/mod_smacks.lua
parent85602802b2d2d7285b25b05bf32fa96cab8afd72 (diff)
downloadprosody-129520cd56b21f9b3b7cd00bcc7eba5a1310b24c.tar.gz
prosody-129520cd56b21f9b3b7cd00bcc7eba5a1310b24c.zip
mod_smacks: Remove dead legacy code for 0.10
Diffstat (limited to 'plugins/mod_smacks.lua')
-rw-r--r--plugins/mod_smacks.lua17
1 files changed, 0 insertions, 17 deletions
diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua
index ee07ac13..d014f304 100644
--- a/plugins/mod_smacks.lua
+++ b/plugins/mod_smacks.lua
@@ -51,23 +51,6 @@ assert(max_old_sessions > 0, "smacks_max_old_sessions must be greater than 0");
local c2s_sessions = module:shared("/*/c2s/sessions");
local function init_session_cache(max_entries, evict_callback)
- -- old prosody version < 0.10 (no limiting at all!)
- if not cache then
- local store = {};
- return {
- get = function(user, key)
- if not user then return nil; end
- if not key then return nil; end
- return store[key];
- end;
- set = function(user, key, value)
- if not user then return nil; end
- if not key then return nil; end
- store[key] = value;
- end;
- };
- end
-
-- use per user limited cache for prosody >= 0.10
local stores = {};
return {