From e0140bbad5b3087b7fbfcd3f2de4e34bb7da69d9 Mon Sep 17 00:00:00 2001 From: Sandra Snan Date: Sun, 25 May 2025 20:19:30 +0200 Subject: [PATCH] Remove contains from lua Is this function even doing anything? If so reject PR. I'm still trying to understand the code. --- cmdeploy/src/cmdeploy/dovecot/push_notification.lua | 9 --------- 1 file changed, 9 deletions(-) diff --git a/cmdeploy/src/cmdeploy/dovecot/push_notification.lua b/cmdeploy/src/cmdeploy/dovecot/push_notification.lua index d9bc2bc4..4eaf7fcd 100644 --- a/cmdeploy/src/cmdeploy/dovecot/push_notification.lua +++ b/cmdeploy/src/cmdeploy/dovecot/push_notification.lua @@ -2,15 +2,6 @@ function dovecot_lua_notify_begin_txn(user) return user end -function contains(v, needle) - for _, keyword in ipairs(v) do - if keyword == needle then - return true - end - end - return false -end - function dovecot_lua_notify_event_message_new(user, event) local mbox = user:mailbox(event.mailbox) mbox:sync()