# HG changeset patch # User Kim Alvefur # Date 1526832612 -7200 # Node ID 0f2dd63975695421a86dcf324acdecabda3bebbb # Parent 040eaa3844f46c13653c97b6469fb615a172fe5b mod_pastebin: Remove unused locals [luacheck] diff -r 040eaa3844f4 -r 0f2dd6397569 mod_pastebin/mod_pastebin.lua --- a/mod_pastebin/mod_pastebin.lua Sun May 20 17:55:53 2018 +0200 +++ b/mod_pastebin/mod_pastebin.lua Sun May 20 18:10:12 2018 +0200 @@ -3,7 +3,7 @@ module:depends("http"); local uuid_new = require "util.uuid".generate; local os_time = os.time; -local t_insert, t_remove = table.insert, table.remove; +local t_remove = table.remove; local add_task = require "util.timer".add_task; local jid_bare = require "util.jid".bare; local muc_rooms; @@ -92,7 +92,7 @@ local line_count_pattern = string.rep("[^\n]\n", line_threshold):sub(1, -2); function check_message(data) - local origin, stanza = data.origin, data.stanza; + local stanza = data.stanza; -- Only check for MUC presence when loaded on a component. if is_component then